This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 5a23ac8460a7bc1c2cdbf6ac62bd67e023451b8f Author: Michael Niedermayer <[email protected]> AuthorDate: Thu Sep 24 00:44:30 2026 +0200 Commit: michaelni <[email protected]> CommitDate: Sat Oct 3 20:25:49 2026 +0000 avcodec/hevc: reject an alpha layer frame without a base layer frame Fixes: NULL pointer dereference Fixes: 70rhPmst9XNe Fixes: hevc_alpha_null.hevc Replicated through UnModified FFmpeg Regression since: f926b60455 Found-by: Glops Elemiu --- libavcodec/hevc/hevcdec.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libavcodec/hevc/hevcdec.c b/libavcodec/hevc/hevcdec.c index 9bbe6fe5a5..6f65dd5af9 100644 --- a/libavcodec/hevc/hevcdec.c +++ b/libavcodec/hevc/hevcdec.c @@ -3266,6 +3266,11 @@ static int hevc_frame_start(HEVCContext *s, HEVCLayerContext *l, return AVERROR_INVALIDDATA; } + if (l != &s->layers[0] && ff_hevc_is_alpha_video(s) && !s->layers[0].cur_frame) { + av_log(s->avctx, AV_LOG_ERROR, "Alpha layer frame without a base layer frame\n"); + return AVERROR_INVALIDDATA; + } + av_refstruct_replace(&s->pps, pps); if (l->sps != sps) { const HEVCSPS *sps_base = s->layers[0].sps; -- 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]
