summaryrefslogtreecommitdiff
path: root/libavcodec/mjpegenc_common.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-10-06 02:47:50 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-10-09 19:31:47 +0200
commit4486ff924202dcfb3121596ff900873483d5ffd1 (patch)
tree96d0df4fa1d1c173cd1c6c53e25665973d207993 /libavcodec/mjpegenc_common.c
parent33a96b600bd45fe5ca33e3d688b873cdaceb4ee3 (diff)
downloadffmpeg-4486ff924202dcfb3121596ff900873483d5ffd1.tar.gz
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@outlook.com>
Diffstat (limited to 'libavcodec/mjpegenc_common.c')
-rw-r--r--libavcodec/mjpegenc_common.c1
1 files changed, 0 insertions, 1 deletions
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--){