Commit de5667b015 for ffmpeg

commit de5667b015fef60a4e8f441e854a3a7ed979aba4
Author: James Almer <jamrial@gmail.com>
Date:   Thu Oct 29 15:36:01 2026 -0300

    fftools/ffmpeg_mux_init: select enhancement streams if they are alone

    In that scenario, it's better than not choosing anything at all.
    This is needed for the following changes.

    Signed-off-by: James Almer <jamrial@gmail.com>

diff --git a/fftools/ffmpeg_mux_init.c b/fftools/ffmpeg_mux_init.c
index ec0d06b691..15b436cc56 100644
--- a/fftools/ffmpeg_mux_init.c
+++ b/fftools/ffmpeg_mux_init.c
@@ -1752,7 +1752,8 @@ static int map_auto_video(Muxer *mux, const OptionsContext *o)

             if (ist->user_set_discard == AVDISCARD_ALL ||
                 ist->st->codecpar->codec_type != AVMEDIA_TYPE_VIDEO ||
-                (desc && (desc->props & AV_CODEC_PROP_ENHANCEMENT)))
+                (desc && (ifile->nb_streams > 1 || nb_input_files > 1) &&
+                 (desc->props & AV_CODEC_PROP_ENHANCEMENT)))
                 continue;

             score = ist->st->codecpar->width * (int64_t)ist->st->codecpar->height