]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/paf.c
Silicon Graphics Movie (.mv) demuxer
[ffmpeg] / libavcodec / paf.c
index 39d65095426599d507cd91e03a9a29fc6b19838f..adb37ee7b64529533a4438b5f35ad5388f215c1d 100644 (file)
@@ -245,7 +245,7 @@ static int decode_0(AVCodecContext *avctx, uint8_t code, uint8_t *pkt)
 }
 
 static int paf_vid_decode(AVCodecContext *avctx, void *data,
-                          int *data_size, AVPacket *pkt)
+                          int *got_frame, AVPacket *pkt)
 {
     PAFVideoDecContext *c = avctx->priv_data;
     uint8_t code, *dst, *src, *end;
@@ -357,7 +357,7 @@ static int paf_vid_decode(AVCodecContext *avctx, void *data,
 
     c->current_frame = (c->current_frame + 1) & 3;
 
-    *data_size       = sizeof(AVFrame);
+    *got_frame       = 1;
     *(AVFrame *)data = c->pic;
 
     return pkt->size;