PR #24462 opened by frankplow
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24462
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24462.patch


>From c81d4eabadef82fdd6a09f83b2b663606744a6dc Mon Sep 17 00:00:00 2001
From: Frank Plowman <[email protected]>
Date: Sat, 12 Sep 2026 12:52:30 +0100
Subject: [PATCH] lavc/vvc: Check return code of `ff_vvc_cabac_init`

Signed-off-by: Frank Plowman <[email protected]>
---
 libavcodec/vvc/ctu.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libavcodec/vvc/ctu.c b/libavcodec/vvc/ctu.c
index e50ac592bd..56b92ff37a 100644
--- a/libavcodec/vvc/ctu.c
+++ b/libavcodec/vvc/ctu.c
@@ -2826,7 +2826,9 @@ int ff_vvc_coding_tree_unit(VVCLocalContext *lc,
     lc->coeffs = fc->tab.coeffs + rs * ctb_size * VVC_MAX_SAMPLE_ARRAYS;
     lc->cu     = NULL;
 
-    ff_vvc_cabac_init(lc, ctu_idx, rx, ry);
+    ret = ff_vvc_cabac_init(lc, ctu_idx, rx, ry);
+    if (ret < 0)
+        return ret;
     ff_vvc_decode_neighbour(lc, x_ctb, y_ctb, rx, ry, rs);
     ret = hls_coding_tree_unit(lc, x_ctb, y_ctb, ctu_idx, rx, ry);
     if (ret < 0)
-- 
2.52.0

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

Reply via email to