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

Git pushed a commit to branch release/6.1
in repository ffmpeg.

commit 864ba88bbcd5064b5a892dfe59fce6bb8025a2c8
Author:     Martin Storsjö <[email protected]>
AuthorDate: Wed Sep 25 15:04:57 2024 +0300
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sat Jun 20 17:42:28 2026 +0200

    av1dec: Don't crash if decoding of some frames have failed
    
    If decoding with hwaccel, but decoding fails, these pointers
    are null at this point.
    
    Signed-off-by: Martin Storsjö <[email protected]>
    (cherry picked from commit a27f3c590f08bdc91e26ba39f9ea4adc1bbe79a5)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavcodec/av1dec.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c
index f8ded1064f..17f49f733d 100644
--- a/libavcodec/av1dec.c
+++ b/libavcodec/av1dec.c
@@ -280,6 +280,8 @@ static void skip_mode_params(AV1DecContext *s)
     forward_idx  = -1;
     backward_idx = -1;
     for (i = 0; i < AV1_REFS_PER_FRAME; i++) {
+        if (!s->ref[header->ref_frame_idx[i]].raw_frame_header)
+            return;
         ref_hint = 
s->ref[header->ref_frame_idx[i]].raw_frame_header->order_hint;
         dist = get_relative_dist(seq, ref_hint, header->order_hint);
         if (dist < 0) {

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to