This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 847acdff187e6f2f1b725644ac9eabdea7aed9f2
Author:     Nicholas Carlini <[email protected]>
AuthorDate: Sat Sep 19 22:06:26 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Wed Oct 21 20:27:40 2026 +0000

    avcodec/hevc: re-validate non-base layer SPS when the base SPS changes
    
    Fixes: out of array access
    Fixes: Ot8zjwCVrunh
    Regression since: f926b6045522c5f9887a108f5d9b6ae017e9ba02
    
    Found-by: Nicholas Carlini <[email protected]>
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavcodec/hevc/hevcdec.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavcodec/hevc/hevcdec.c b/libavcodec/hevc/hevcdec.c
index f5f0cf7f10..f1bd562291 100644
--- a/libavcodec/hevc/hevcdec.c
+++ b/libavcodec/hevc/hevcdec.c
@@ -3451,6 +3451,9 @@ static int hevc_frame_start(HEVCContext *s, 
HEVCLayerContext *l,
                        "Base/non-base layer SPS have unsupported parameter 
combination\n");
                 return AVERROR(ENOSYS);
             }
+        } else {
+            for (int i = 1; i < FF_ARRAY_ELEMS(s->layers); i++)
+                set_sps(s, &s->layers[i], NULL);
         }
 
         ff_hevc_clear_refs(l);

-- 
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]

Reply via email to