aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Plowman <post@frankplowman.com>2025-07-19 18:16:24 +0100
committerFrank Plowman <post@frankplowman.com>2025-07-28 20:45:45 +0100
commitce172bc362f09a12dc422283d81313bde4920f51 (patch)
tree537006494419c58a186571019cbcd4c2cd62e9b6
parenta408b749777603841a64e57c4341b5b2685c9c2c (diff)
downloadffmpeg-ce172bc362f09a12dc422283d81313bde4920f51.tar.gz
lavc/vvc: Don't discard palette_subblock_data return code
Signed-off-by: Frank Plowman <post@frankplowman.com>
-rw-r--r--libavcodec/vvc/ctu.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libavcodec/vvc/ctu.c b/libavcodec/vvc/ctu.c
index cf7edccb8b..35c18e78f6 100644
--- a/libavcodec/vvc/ctu.c
+++ b/libavcodec/vvc/ctu.c
@@ -2118,9 +2118,12 @@ static int hls_palette_coding(VVCLocalContext *lc, const VVCTreeType tree_type)
palette_qp(lc, tree_type, escape_present);
index[0] = 0;
- for (int i = 0; i <= (cu->cb_width * cu->cb_height - 1) >> 4; i++)
- palette_subblock_data(lc, max_index, i, transpose,
+ for (int i = 0; i <= (cu->cb_width * cu->cb_height - 1) >> 4; i++) {
+ ret = palette_subblock_data(lc, max_index, i, transpose,
run_type, index, &prev_run_pos, &adjust);
+ if (ret < 0)
+ return ret;
+ }
return 0;
}