Commit 70974bdb authored by Michael Niedermayer's avatar Michael Niedermayer

ffmpeg: Fix segfault when using ffmpeg with ffserver where ffmpeg does not...

ffmpeg: Fix segfault when using ffmpeg with ffserver where ffmpeg does not supply all requested streams.
Fixes Ticket675
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent cf14c822
......@@ -3935,6 +3935,10 @@ static void opt_output_file(void *optctx, const char *filename)
break;
}
}
if(!ost->sync_ist){
av_log(NULL, AV_LOG_FATAL, "Missing %s stream which is required by this ffm\n", av_get_media_type_string(ost->st->codec->codec_type));
exit_program(1);
}
}
} else if (!o->nb_stream_maps) {
/* pick the "best" stream of each type */
......
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