[FFmpeg-cvslog] avcodec/ljpegenc: Dont use ff_mjpeg_encode_stuffing()
Michael Niedermayer
git at videolan.org
Fri Dec 6 12:11:48 CET 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Dec 6 11:56:16 2013 +0100| [d756b2b530ca742ac930ca6e9d1ba86ec8af86c9] | committer: Michael Niedermayer
avcodec/ljpegenc: Dont use ff_mjpeg_encode_stuffing()
This avoids a use of MpegEncContext
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d756b2b530ca742ac930ca6e9d1ba86ec8af86c9
---
libavcodec/ljpegenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/ljpegenc.c b/libavcodec/ljpegenc.c
index 7e536a8..99fee70 100644
--- a/libavcodec/ljpegenc.c
+++ b/libavcodec/ljpegenc.c
@@ -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++;
More information about the ffmpeg-cvslog
mailing list