You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
ffmpeg: map subtitle stream by default when user specified -scodec
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
2
ffmpeg.c
2
ffmpeg.c
@@ -3723,7 +3723,7 @@ static void opt_output_file(void *optctx, const char *filename)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* subtitles: pick first */
|
/* subtitles: pick first */
|
||||||
if (!subtitle_disable && oc->oformat->subtitle_codec != CODEC_ID_NONE) {
|
if (!subtitle_disable && (oc->oformat->subtitle_codec != CODEC_ID_NONE || subtitle_codec_name)) {
|
||||||
for (i = 0; i < nb_input_streams; i++)
|
for (i = 0; i < nb_input_streams; i++)
|
||||||
if (input_streams[i].st->codec->codec_type == AVMEDIA_TYPE_SUBTITLE) {
|
if (input_streams[i].st->codec->codec_type == AVMEDIA_TYPE_SUBTITLE) {
|
||||||
NEW_STREAM(subtitle, i);
|
NEW_STREAM(subtitle, i);
|
||||||
|
Reference in New Issue
Block a user