Commit d543b3bb authored by Michael Niedermayer's avatar Michael Niedermayer

ffmpeg: map subtitle stream by default when user specified -scodec

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 845383c3
......@@ -3723,7 +3723,7 @@ static void opt_output_file(void *optctx, const char *filename)
}
/* 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++)
if (input_streams[i].st->codec->codec_type == AVMEDIA_TYPE_SUBTITLE) {
NEW_STREAM(subtitle, i);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment