ffmpeg | branch: master | wang-bin <[email protected]> | 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 <[email protected]>

> 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)

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to