1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

exit with error code if av_encode failed

Originally committed as revision 16704 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Baptiste Coudurier 2009-01-20 21:09:51 +00:00
parent f53ee31275
commit 6c7c44ee7a

View File

@ -3918,8 +3918,9 @@ int main(int argc, char **argv)
} }
ti = getutime(); ti = getutime();
av_encode(output_files, nb_output_files, input_files, nb_input_files, if (av_encode(output_files, nb_output_files, input_files, nb_input_files,
stream_maps, nb_stream_maps); stream_maps, nb_stream_maps) < 0)
av_exit(1);
ti = getutime() - ti; ti = getutime() - ti;
if (do_benchmark) { if (do_benchmark) {
printf("bench: utime=%0.3fs\n", ti / 1000000.0); printf("bench: utime=%0.3fs\n", ti / 1000000.0);