From 244befc535a5f4a2cf5caa8eacb3150ca390921f Mon Sep 17 00:00:00 2001 From: John Stebbins Date: Sun, 15 Dec 2019 11:30:39 -0800 Subject: [PATCH] ccaption_dec: return number of bytes used Documentation says avcodec_decode_subtitle2 returns the number of bytes used. --- 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 bf3563a0bc..4aeb4e7e0f 100644 --- a/libavcodec/ccaption_dec.c +++ b/libavcodec/ccaption_dec.c @@ -812,7 +812,7 @@ static int decode(AVCodecContext *avctx, void *data, int *got_sub, AVPacket *avp } *got_sub = sub->num_rects > 0; - return ret; + return len; } #define OFFSET(x) offsetof(CCaptionSubContext, x) -- 2.23.0