1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-08-01 08:49:59 +02:00

ffmpeg: Fix segfault when using ffmpeg with ffserver where ffmpeg does not supply all requested streams.

Fixes Ticket675

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2011-11-21 23:32:39 +01:00
parent cf14c82227
commit 70974bdb27

View File

@ -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 */