]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/rpza.c
Silicon Graphics Movie (.mv) demuxer
[ffmpeg] / libavcodec / rpza.c
index 498c36e7b86c43385c25f2d3547ce62474a738ec..a4247599530e426f55353ed3916d056c0e7a754a 100644 (file)
@@ -245,7 +245,7 @@ static av_cold int rpza_decode_init(AVCodecContext *avctx)
 }
 
 static int rpza_decode_frame(AVCodecContext *avctx,
-                             void *data, int *data_size,
+                             void *data, int *got_frame,
                              AVPacket *avpkt)
 {
     const uint8_t *buf = avpkt->data;
@@ -264,7 +264,7 @@ static int rpza_decode_frame(AVCodecContext *avctx,
 
     rpza_decode_stream(s);
 
-    *data_size = sizeof(AVFrame);
+    *got_frame      = 1;
     *(AVFrame*)data = s->frame;
 
     /* always report that the buffer was completely consumed */