avcodec/ccaption_dec: return the number of bytes decoded

Signed-off-by: Anton Khirnov <anton@khirnov.net>
pull/389/head
wang-bin 2 years ago committed by Anton Khirnov
parent 2aec86695a
commit e16b874b6a
  1. 2
      libavcodec/ccaption_dec.c

@ -922,7 +922,7 @@ static int decode(AVCodecContext *avctx, AVSubtitle *sub,
} }
*got_sub = sub->num_rects > 0; *got_sub = sub->num_rects > 0;
return ret; return avpkt->size;
} }
#define OFFSET(x) offsetof(CCaptionSubContext, x) #define OFFSET(x) offsetof(CCaptionSubContext, x)

Loading…
Cancel
Save