]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/iff.c
mjpegdec: support more pix_fmt_ids for grayscale
[ffmpeg] / libavcodec / iff.c
index 1f07492c22c7dd9fdf7f228e08bb6142e43acffb..0e4c172c792695f3c6a929867a1525aebaa2220c 100644 (file)
@@ -591,7 +591,7 @@ static int unsupported(AVCodecContext *avctx)
 }
 
 static int decode_frame(AVCodecContext *avctx,
-                            void *data, int *data_size,
+                            void *data, int *got_frame,
                             AVPacket *avpkt)
 {
     IffContext *s = avctx->priv_data;
@@ -784,7 +784,7 @@ static int decode_frame(AVCodecContext *avctx,
         return unsupported(avctx);
     }
 
-    *data_size = sizeof(AVFrame);
+    *got_frame = 1;
     *(AVFrame*)data = s->frame;
     return buf_size;
 }