]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/cyuv.c
Merge commit 'f1d8763a02b5fce9a7d9789e049d74a45b15e1e8'
[ffmpeg] / libavcodec / cyuv.c
index 5d49e45f3968c7640cf485d9dc116d6a43472d44..3bc6ba4981eeeaba96ed5b347aed5be0918675b2 100644 (file)
@@ -60,7 +60,7 @@ static av_cold int cyuv_decode_init(AVCodecContext *avctx)
 }
 
 static int cyuv_decode_frame(AVCodecContext *avctx,
-                             void *data, int *data_size,
+                             void *data, int *got_frame,
                              AVPacket *avpkt)
 {
     const uint8_t *buf = avpkt->data;
@@ -178,7 +178,7 @@ static int cyuv_decode_frame(AVCodecContext *avctx,
     }
     }
 
-    *data_size=sizeof(AVFrame);
+    *got_frame = 1;
     *(AVFrame*)data= s->frame;
 
     return buf_size;