[FFmpeg-cvslog] avcodec/mjpegenc_common: Don't flush unnecessarily

Andreas Rheinhardt git at videolan.org
Sun Oct 9 20:41:17 EEST 2022


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Thu Oct  6 02:47:50 2022 +0200| [4486ff924202dcfb3121596ff900873483d5ffd1] | committer: Andreas Rheinhardt

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 <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4486ff924202dcfb3121596ff900873483d5ffd1
---

 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--){



More information about the ffmpeg-cvslog mailing list