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

Git pushed a commit to branch master
in repository ffmpeg.

commit c6057f4d96837c4a20770ce794562cb600577e6a
Author:     James Almer <[email protected]>
AuthorDate: Fri Mar 6 10:26:11 2026 -0300
Commit:     James Almer <[email protected]>
CommitDate: Sat Mar 7 19:21:44 2026 -0300

    fftools/ffmpeg_mux_init: don't autoselect video codecs known to lack 
decoders
    
    They should not be given priority even in a stream copy scenario.
    
    Signed-off-by: James Almer <[email protected]>
---
 fftools/ffmpeg_mux_init.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/fftools/ffmpeg_mux_init.c b/fftools/ffmpeg_mux_init.c
index 5c0c8ca36f..7e51ce76ad 100644
--- a/fftools/ffmpeg_mux_init.c
+++ b/fftools/ffmpeg_mux_init.c
@@ -1652,10 +1652,12 @@ static int map_auto_video(Muxer *mux, const 
OptionsContext *o)
         }
         for (int i = 0; i < ifile->nb_streams; i++) {
             InputStream *ist = ifile->streams[i];
+            const AVCodecDescriptor *desc = 
avcodec_descriptor_get(ist->st->codecpar->codec_id);
             int64_t score;
 
             if (ist->user_set_discard == AVDISCARD_ALL ||
-                ist->st->codecpar->codec_type != AVMEDIA_TYPE_VIDEO)
+                ist->st->codecpar->codec_type != AVMEDIA_TYPE_VIDEO ||
+                (desc && (desc->props & AV_CODEC_PROP_ENHANCEMENT)))
                 continue;
 
             score = ist->st->codecpar->width * 
(int64_t)ist->st->codecpar->height

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

Reply via email to