]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/targa.c
Silicon Graphics Movie (.mv) demuxer
[ffmpeg] / libavcodec / targa.c
index 5c0efb3f400bedecfb29b96635293b8fdc361aaf..6bb05a93addb04ca020b4d6c802bb5f2f7226e5d 100644 (file)
@@ -108,7 +108,7 @@ static int targa_decode_rle(AVCodecContext *avctx, TargaContext *s,
 }
 
 static int decode_frame(AVCodecContext *avctx,
-                        void *data, int *data_size,
+                        void *data, int *got_frame,
                         AVPacket *avpkt)
 {
     TargaContext * const s = avctx->priv_data;
@@ -298,7 +298,7 @@ static int decode_frame(AVCodecContext *avctx,
     }
 
     *picture   = s->picture;
-    *data_size = sizeof(AVPicture);
+    *got_frame = 1;
 
     return avpkt->size;
 }