diff mbox series

[FFmpeg-devel,9/9] avcodec/mjpegenc_common: Don't flush unnecessarily

Message ID GV1P250MB0737EE82417A617A5DB715508F5C9@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit 4486ff924202dcfb3121596ff900873483d5ffd1
Headers show
Series None | expand

Commit Message

Andreas Rheinhardt Oct. 6, 2022, 12:57 a.m. UTC
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@outlook.com>
---
 libavcodec/mjpegenc_common.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

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