Commit cebfe291 authored by bcoudurier's avatar bcoudurier

move check for output file streams num in av_encode

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6907 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 3e1fda4f
......@@ -1424,6 +1424,10 @@ static int av_encode(AVFormatContext **output_files,
nb_ostreams = 0;
for(i=0;i<nb_output_files;i++) {
os = output_files[i];
if (!os->nb_streams) {
fprintf(stderr, "Output file does not contain any stream\n");
exit(1);
}
nb_ostreams += os->nb_streams;
}
if (nb_stream_maps > 0 && nb_stream_maps != nb_ostreams) {
......@@ -3107,10 +3111,6 @@ static void opt_output_file(const char *filename)
new_audio_stream(oc);
}
if (!oc->nb_streams) {
fprintf(stderr, "Note: Output file will not contain a video or audio stream\n");
}
oc->timestamp = rec_timestamp;
if (str_title)
......
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