summaryrefslogtreecommitdiff
path: root/libavcodec/ljpegenc.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-12-01 22:05:18 +0100
committerAnton Khirnov <anton@khirnov.net>2013-12-05 13:34:26 +0100
commit058d5f2feb730846f22c1812e433f92f670ad751 (patch)
tree0728845a22512169b30acba88041d68a6d3ba7fa /libavcodec/ljpegenc.c
parent6d70639c7d5fe762c5f18de574eafa817fb53ef7 (diff)
mjpegenc: do not pass MpegEncContext to ff_mjpeg_encode_picture_header()
This will allow deMpegEncContextizing the LJPEG encoder.
Diffstat (limited to 'libavcodec/ljpegenc.c')
-rw-r--r--libavcodec/ljpegenc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/ljpegenc.c b/libavcodec/ljpegenc.c
index 4b132399db..d94cfbfa88 100644
--- a/libavcodec/ljpegenc.c
+++ b/libavcodec/ljpegenc.c
@@ -70,7 +70,8 @@ static int encode_picture_lossless(AVCodecContext *avctx, AVPacket *pkt,
p->pict_type= AV_PICTURE_TYPE_I;
p->key_frame= 1;
- ff_mjpeg_encode_picture_header(s);
+ ff_mjpeg_encode_picture_header(avctx, &s->pb, &s->intra_scantable,
+ s->intra_matrix);
s->header_bits= put_bits_count(&s->pb);