]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/xsubdec: replace data_size with got_sub_ptr for better readability
authorLimin Wang <lance.lmwang@gmail.com>
Tue, 24 Mar 2020 11:05:16 +0000 (19:05 +0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 25 Mar 2020 17:41:21 +0000 (18:41 +0100)
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/xsubdec.c

index 05c4a64ee52bf79b1e6084ee9b06a620836be7d6..c1c6e11dc31807f3fb447baed7c526ae674e1e04 100644 (file)
@@ -46,7 +46,7 @@ static int64_t parse_timecode(const uint8_t *buf, int64_t packet_time) {
     return ms - packet_time;
 }
 
-static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
+static int decode_frame(AVCodecContext *avctx, void *data, int *got_sub_ptr,
                         AVPacket *avpkt) {
     const uint8_t *buf = avpkt->data;
     int buf_size = avpkt->size;
@@ -169,7 +169,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
         bitmap += w;
         align_get_bits(&gb);
     }
-    *data_size = 1;
+    *got_sub_ptr = 1;
     return buf_size;
 }