[FFmpeg-cvslog] avcodec/ccaption_dec: return the number of bytes decoded
wang-bin
git at videolan.org
Mon Feb 20 20:28:43 EET 2023
ffmpeg | branch: master | wang-bin <wbsecg1 at gmail.com> | Sat Feb 11 16:04:05 2023 +0800| [e16b874b6a7391da08a844d1f5b9714195d1842b] | committer: Anton Khirnov
avcodec/ccaption_dec: return the number of bytes decoded
Signed-off-by: Anton Khirnov <anton at khirnov.net>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e16b874b6a7391da08a844d1f5b9714195d1842b
---
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)
More information about the ffmpeg-cvslog
mailing list