]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/eatqi.c
Add MPL2 subtitles demuxer and decoder.
[ffmpeg] / libavcodec / eatqi.c
index fcf652b70a62ee92bad06ed90a7f92521df0c569..306331f3591095e92c8e2e45b292e3fd5f43b081 100644 (file)
@@ -97,7 +97,7 @@ static void tqi_calculate_qtable(MpegEncContext *s, int quant)
 }
 
 static int tqi_decode_frame(AVCodecContext *avctx,
-                            void *data, int *data_size,
+                            void *data, int *got_frame,
                             AVPacket *avpkt)
 {
     const uint8_t *buf = avpkt->data;
@@ -139,7 +139,7 @@ static int tqi_decode_frame(AVCodecContext *avctx,
     }
     end:
 
-    *data_size = sizeof(AVFrame);
+    *got_frame = 1;
     *(AVFrame*)data = t->frame;
     return buf_size;
 }