]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/truemotion2.c
mjpegdec: support more pix_fmt_ids for grayscale
[ffmpeg] / libavcodec / truemotion2.c
index f1e24b729caa0c1edbdec75a456482b321f81011..20322435c5fdf1eb40d0044f955269634d86aa99 100644 (file)
@@ -826,7 +826,7 @@ static const int tm2_stream_order[TM2_NUM_STREAMS] = {
 };
 
 static int decode_frame(AVCodecContext *avctx,
-                        void *data, int *data_size,
+                        void *data, int *got_frame,
                         AVPacket *avpkt)
 {
     const uint8_t *buf = avpkt->data;
@@ -873,7 +873,7 @@ static int decode_frame(AVCodecContext *avctx,
         p->pict_type = AV_PICTURE_TYPE_P;
 
     l->cur = !l->cur;
-    *data_size = sizeof(AVFrame);
+    *got_frame      = 1;
     *(AVFrame*)data = l->pic;
 
     return buf_size;