diff --git a/ffmpeg.c b/ffmpeg.c index 623716a14e..8935b17056 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -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 */