This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/9.1 in repository ffmpeg.
commit 46bdd8991a3be5f7e23d78649b9e67a50670c41d Author: Michael Niedermayer <[email protected]> AuthorDate: Fri Oct 2 03:02:43 2026 +0200 Commit: Michael Niedermayer <[email protected]> CommitDate: Sun Nov 15 05:26:09 2026 +0100 avcodec/vvc/dec: require all slices of a frame to use the same PH and PPS The testcases reproduce since b0c77e5a12. Fixes: out of array read Fixes: fAak9zecyttL/testcase/poc.vvc Fixes: fAak9zecyttL/testcase/poc-entry-points.vvc Fixes: fAak9zecyttL Found-by: mzfr <[email protected]> (cherry picked from commit 507e9ad2862619b66046ed7381296d4e5d3c8188) Signed-off-by: Michael Niedermayer <[email protected]> --- libavcodec/vvc/dec.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libavcodec/vvc/dec.c b/libavcodec/vvc/dec.c index 8ed9e1e4b8..f69fa99c6d 100644 --- a/libavcodec/vvc/dec.c +++ b/libavcodec/vvc/dec.c @@ -965,6 +965,15 @@ static int decode_slice(VVCContext *s, VVCFrameContext *fc, AVBufferRef *buf_ref ret = frame_setup(fc, s); if (ret < 0) return ret; + } else { + const H266RawSlice *first = fc->slices[0]->ref; + const H266RawSlice *slice = sc->ref; + + if (slice->ph != first->ph || slice->pps != first->pps) { + av_log(fc->log_ctx, AV_LOG_ERROR, + "Slice does not use the PH and PPS of the first slice.\n"); + return AVERROR_INVALIDDATA; + } } ret = slice_start(sc, s, fc, unit, is_first_slice); -- To stop receiving notification emails like this one, please contact [email protected]. _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
