This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch release/8.1
in repository ffmpeg.

commit 680ac1aa324bc71442479c6384ed6869e2d14013
Author:     James Almer <[email protected]>
AuthorDate: Tue Mar 10 15:50:20 2026 -0300
Commit:     James Almer <[email protected]>
CommitDate: Fri Mar 13 09:06:53 2026 -0300

    avcodec/lcevc_parser: check return value of init_get_bits8()
    
    Fixes coverity issue CID 1684198.
    
    Signed-off-by: James Almer <[email protected]>
    (cherry picked from commit a9984fec81f8df03e18538278a8e734881b5090f)
---
 libavcodec/lcevc_parser.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libavcodec/lcevc_parser.c b/libavcodec/lcevc_parser.c
index f3338c4659..1de44a8bda 100644
--- a/libavcodec/lcevc_parser.c
+++ b/libavcodec/lcevc_parser.c
@@ -114,7 +114,9 @@ static int parse_nal_unit(AVCodecParserContext *s, 
AVCodecContext *avctx,
         int payload_size_type, payload_type;
         int block_size;
 
-        init_get_bits8(&gb, gbc.buffer, bytestream2_get_bytes_left(&gbc));
+        int ret = init_get_bits8(&gb, gbc.buffer, 
bytestream2_get_bytes_left(&gbc));
+        if (ret < 0)
+            return ret;
 
         payload_size_type = get_bits(&gb, 3);
         payload_type      = get_bits(&gb, 5);

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to