Commit 6c7c44ee authored by Baptiste Coudurier's avatar Baptiste Coudurier

exit with error code if av_encode failed

Originally committed as revision 16704 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent f53ee312
...@@ -3918,8 +3918,9 @@ int main(int argc, char **argv) ...@@ -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);
......
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