]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/v410dec.c
Merge commit '90c784cc13f6bf21a8eb69f3b88b50c7a70f6c59'
[ffmpeg] / libavcodec / v410dec.c
index 52cdf3218dc0eaadc13db499129e4ecc737a6699..ff2381741a9b158d023792aa55f49b210ce17822 100644 (file)
@@ -50,7 +50,7 @@ static av_cold int v410_decode_init(AVCodecContext *avctx)
 }
 
 static int v410_decode_frame(AVCodecContext *avctx, void *data,
-                             int *data_size, AVPacket *avpkt)
+                             int *got_frame, AVPacket *avpkt)
 {
     AVFrame *pic = avctx->coded_frame;
     uint8_t *src = avpkt->data;
@@ -96,7 +96,7 @@ static int v410_decode_frame(AVCodecContext *avctx, void *data,
         v += pic->linesize[2] >> 1;
     }
 
-    *data_size = sizeof(AVFrame);
+    *got_frame = 1;
     *(AVFrame *)data = *pic;
 
     return avpkt->size;