]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/msvideo1.c
libavcodec/x86/mpegvideo: switch to av_assert2
[ffmpeg] / libavcodec / msvideo1.c
index 8d1164bf8fdd146be5e4245efe9f487aa0881939..fd98b3132709d5c9d442286de7011f531e1b575c 100644 (file)
@@ -287,7 +287,7 @@ static void msvideo1_decode_16bit(Msvideo1Context *s)
 }
 
 static int msvideo1_decode_frame(AVCodecContext *avctx,
-                                void *data, int *data_size,
+                                void *data, int *got_frame,
                                 AVPacket *avpkt)
 {
     const uint8_t *buf = avpkt->data;
@@ -318,7 +318,7 @@ static int msvideo1_decode_frame(AVCodecContext *avctx,
     else
         msvideo1_decode_16bit(s);
 
-    *data_size = sizeof(AVFrame);
+    *got_frame      = 1;
     *(AVFrame*)data = s->frame;
 
     /* report that the buffer was completely consumed */