diff options
-rw-r--r-- | ffmpeg.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -3918,8 +3918,9 @@ int main(int argc, char **argv) } ti = getutime(); - av_encode(output_files, nb_output_files, input_files, nb_input_files, - stream_maps, nb_stream_maps); + if (av_encode(output_files, nb_output_files, input_files, nb_input_files, + stream_maps, nb_stream_maps) < 0) + av_exit(1); ti = getutime() - ti; if (do_benchmark) { printf("bench: utime=%0.3fs\n", ti / 1000000.0); |