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>
pull/336/head
Limin Wang 5 years ago committed by Michael Niedermayer
parent 0b43897530
commit 2d244c9a00
  1. 4
      libavcodec/xsubdec.c

@ -46,7 +46,7 @@ static int64_t parse_timecode(const uint8_t *buf, int64_t packet_time) {
return ms - 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) { AVPacket *avpkt) {
const uint8_t *buf = avpkt->data; const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size; int buf_size = avpkt->size;
@ -169,7 +169,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
bitmap += w; bitmap += w;
align_get_bits(&gb); align_get_bits(&gb);
} }
*data_size = 1; *got_sub_ptr = 1;
return buf_size; return buf_size;
} }

Loading…
Cancel
Save