mirror of https://git.ffmpeg.org/ffmpeg.git
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:
parent
f53ee31275
commit
6c7c44ee7a
5
ffmpeg.c
5
ffmpeg.c
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue