]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/dfa.c
libavcodec/x86/mpegvideo: switch to av_assert2
[ffmpeg] / libavcodec / dfa.c
index 133d7639fb74e0c67966ae71359b7d275d2f364b..b324c6e5ba5c97e86eae2012831695e8bc3ec4b6 100644 (file)
@@ -314,7 +314,7 @@ static const char* chunk_name[8] = {
 };
 
 static int dfa_decode_frame(AVCodecContext *avctx,
-                            void *data, int *data_size,
+                            void *data, int *got_frame,
                             AVPacket *avpkt)
 {
     DfaContext *s = avctx->priv_data;
@@ -369,7 +369,7 @@ static int dfa_decode_frame(AVCodecContext *avctx,
     }
     memcpy(s->pic.data[1], s->pal, sizeof(s->pal));
 
-    *data_size = sizeof(AVFrame);
+    *got_frame = 1;
     *(AVFrame*)data = s->pic;
 
     return avpkt->size;