Commit f6bb0a3363 for ffmpeg

commit f6bb0a336394f52e93cf55445b189a7bb2487246
Author: Frank Plowman <post@frankplowman.com>
Date:   Sat Sep 12 12:52:30 2026 +0100

    lavc/vvc: Check return code of ff_vvc_cabac_init

    Signed-off-by: Frank Plowman <post@frankplowman.com>

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)