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

Git pushed a commit to branch master
in repository ffmpeg.

commit 81e07825e90961c4f6e2979a8d56b1dfeb4b47ae
Author:     Rainbaby <[email protected]>
AuthorDate: Fri Aug 28 16:18:06 2026 +0900
Commit:     Peter Ross <[email protected]>
CommitDate: Mon Nov 2 22:18:06 2026 +0000

    avcodec/cavsdec: check decode_seq_header() return value
    
    A rejected sequence header (unsupported profile, changed or invalid
    dimensions) was ignored, and every following picture then failed with a
    misleading "No sequence header decoded yet". A mid-stream dimension
    change now stops decoding instead of carrying on at the old size.
    
    Signed-off-by: Rainbaby <[email protected]>
---
 libavcodec/cavsdec.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libavcodec/cavsdec.c b/libavcodec/cavsdec.c
index 54be9ae857..58613b2f4c 100644
--- a/libavcodec/cavsdec.c
+++ b/libavcodec/cavsdec.c
@@ -1271,7 +1271,9 @@ static int cavs_decode_frame(AVCodecContext *avctx, 
AVFrame *rframe,
             return ret;
         switch (stc) {
         case CAVS_START_CODE:
-            decode_seq_header(h);
+            ret = decode_seq_header(h);
+            if (ret < 0)
+                return ret;
             break;
         case PIC_I_START_CODE:
             if (!h->got_keyframe) {

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