avcodec/mjpegenc: pass chroma quantization matrix through as well, not just luma
[ffmpeg.git] / libavcodec / ljpegenc.c
index 35b82fd..b7e3d35 100644 (file)
@@ -233,7 +233,7 @@ static int ljpeg_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
     init_put_bits(&pb, pkt->data, pkt->size);
 
     ff_mjpeg_encode_picture_header(avctx, &pb, &s->scantable,
-                                   s->matrix);
+                                   s->matrix, s->matrix);
 
     header_bits = put_bits_count(&pb);