diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2006-11-05 20:08:26 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2006-11-05 20:08:26 +0000 |
commit | 8a7bde1ca9e4ebf61869d834c27e11cf9503b965 (patch) | |
tree | 037a7f9550fcf3105eb22028f1616d26b99c7674 /ffmpeg.c | |
parent | 1de61a185c20730a473174b858d0e7d8e70f5704 (diff) | |
download | ffmpeg-8a7bde1ca9e4ebf61869d834c27e11cf9503b965.tar.gz |
move check for output file streams num in av_encode
Originally committed as revision 6907 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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) |