]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/jvdec.c
Merge remote-tracking branch 'qatar/master'
[ffmpeg] / libavcodec / jvdec.c
index 5e54a1607f7152637dd43b467adc96f9579caf21..53d8285788bf7a1ac7c3ffae1c3dd4ba5309e5ac 100644 (file)
@@ -129,7 +129,7 @@ static inline void decode8x8(GetBitContext *gb, uint8_t *dst, int linesize, DSPC
 }
 
 static int decode_frame(AVCodecContext *avctx,
-                        void *data, int *data_size,
+                        void *data, int *got_frame,
                         AVPacket *avpkt)
 {
     JvContext *s           = avctx->priv_data;
@@ -190,7 +190,7 @@ static int decode_frame(AVCodecContext *avctx,
         s->palette_has_changed       = 0;
         memcpy(s->frame.data[1], s->palette, AVPALETTE_SIZE);
 
-        *data_size      = sizeof(AVFrame);
+        *got_frame = 1;
         *(AVFrame*)data = s->frame;
     }