Add support for picture_ptr field in MJpegDecodeContext
[ffmpeg.git] / libavcodec / mjpegbdec.c
index f3366ff..837304e 100644 (file)
@@ -129,7 +129,7 @@ read_header:
 
     //XXX FIXME factorize, this looks very similar to the EOI code
 
-    *picture= s->picture;
+    *picture= *s->picture_ptr;
     *data_size = sizeof(AVFrame);
 
     if(!s->lossless){