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

Git pushed a commit to branch master
in repository ffmpeg.

commit c6ce8b958617febd329d52da88796d0e38d442fc
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Tue Oct 6 23:31:55 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Wed Oct 14 17:46:27 2026 +0000

    avformat/movenc: Reject AVIF output with any non-video stream
    
    The check only failed when both streams were not video, a single
    non-video stream or a non-video second stream were accepted.
    
    Fixes: ugZ9hTL5EWJM
    Missing stream type check Replicated through UnModified FFmpeg
    Found during triage of the security report UwVT8CSrU4Oh
---
 libavformat/movenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index f4284ded0a..2c349ef663 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -8396,7 +8396,7 @@ static int mov_init(AVFormatContext *s)
             av_log(s, AV_LOG_ERROR, "AVIF output requires exactly one or two 
streams\n");
             return AVERROR(EINVAL);
         }
-        if (s->streams[0]->codecpar->codec_type != AVMEDIA_TYPE_VIDEO &&
+        if (s->streams[0]->codecpar->codec_type != AVMEDIA_TYPE_VIDEO ||
             (s->nb_streams > 1 && s->streams[1]->codecpar->codec_type != 
AVMEDIA_TYPE_VIDEO)) {
             av_log(s, AV_LOG_ERROR, "AVIF output supports only video 
streams\n");
             return AVERROR(EINVAL);

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