From e16b874b6a7391da08a844d1f5b9714195d1842b Mon Sep 17 00:00:00 2001 From: wang-bin Date: Sat, 11 Feb 2023 16:04:05 +0800 Subject: [PATCH] avcodec/ccaption_dec: return the number of bytes decoded Signed-off-by: Anton Khirnov --- libavcodec/ccaption_dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/ccaption_dec.c b/libavcodec/ccaption_dec.c index 61eda9ff56..661a4951a4 100644 --- a/libavcodec/ccaption_dec.c +++ b/libavcodec/ccaption_dec.c @@ -922,7 +922,7 @@ static int decode(AVCodecContext *avctx, AVSubtitle *sub, } *got_sub = sub->num_rects > 0; - return ret; + return avpkt->size; } #define OFFSET(x) offsetof(CCaptionSubContext, x)