avcodec/ljpegenc: Dont use ff_mjpeg_encode_stuffing()
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 6 Dec 2013 10:56:16 +0000 (11:56 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 6 Dec 2013 11:01:28 +0000 (12:01 +0100)
This avoids a use of MpegEncContext

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/ljpegenc.c

index 7e536a8..99fee70 100644 (file)
@@ -211,7 +211,7 @@ static int encode_picture_lossless(AVCodecContext *avctx, AVPacket *pkt,
     emms_c();
     av_assert0(s->esc_pos == s->header_bits >> 3);
 
-    ff_mjpeg_encode_stuffing(s);
+    ff_mjpeg_escape_FF(&s->pb, s->esc_pos);
     ff_mjpeg_encode_picture_trailer(&s->pb, s->header_bits);
     s->picture_number++;