summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorLimin Wang <lance.lmwang@gmail.com>2020-03-24 19:05:16 +0800
committerMichael Niedermayer <michael@niedermayer.cc>2020-03-25 18:41:21 +0100
commit2d244c9a00025acd1745ce9d89f2c681d8e99fd1 (patch)
tree9ac6884299556fa897a6fcc04b4a68ff9e04e52a /libavcodec
parent0b4389753035c9a69116ea4a4a8caee213ed7c24 (diff)
avcodec/xsubdec: replace data_size with got_sub_ptr for better readability
Signed-off-by: Limin Wang <lance.lmwang@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/xsubdec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/xsubdec.c b/libavcodec/xsubdec.c
index 05c4a64ee5..c1c6e11dc3 100644
--- a/libavcodec/xsubdec.c
+++ b/libavcodec/xsubdec.c
@@ -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;
}