From 4486ff924202dcfb3121596ff900873483d5ffd1 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Thu, 6 Oct 2022 02:47:50 +0200 Subject: [PATCH] avcodec/mjpegenc_common: Don't flush unnecessarily The PutBitContext has already been flushed a few lines above and nothing has been written to it in the meantime. Signed-off-by: Andreas Rheinhardt --- libavcodec/mjpegenc_common.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libavcodec/mjpegenc_common.c b/libavcodec/mjpegenc_common.c index 0076e94296..c37c964931 100644 --- a/libavcodec/mjpegenc_common.c +++ b/libavcodec/mjpegenc_common.c @@ -423,7 +423,6 @@ void ff_mjpeg_escape_FF(PutBitContext *pb, int start) if(ff_count==0) return; - flush_put_bits(pb); skip_put_bytes(pb, ff_count); for(i=size-1; ff_count; i--){