summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwang-bin <[email protected]>2023-02-11 16:04:05 +0800
committerAnton Khirnov <[email protected]>2023-02-20 17:48:11 +0100
commite16b874b6a7391da08a844d1f5b9714195d1842b (patch)
tree0750ddb277a4fbf415c575ede75835b0a3f6fb53
parent2aec86695adf51e106c0722fa2b226e5a284fed1 (diff)
avcodec/ccaption_dec: return the number of bytes decoded
Signed-off-by: Anton Khirnov <[email protected]>
-rw-r--r--libavcodec/ccaption_dec.c2
1 files changed, 1 insertions, 1 deletions
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)