summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-01-20 21:09:51 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-01-20 21:09:51 +0000
commit6c7c44ee7ae3be5dcef5bba685fa375493c0b1f2 (patch)
tree9e3ce0a9b9303c02b2a0eb378df477f13a5a106b /ffmpeg.c
parentf53ee31275f4b9c544708e2eadda4dc5c22d217d (diff)
downloadffmpeg-6c7c44ee7ae3be5dcef5bba685fa375493c0b1f2.tar.gz
exit with error code if av_encode failed
Originally committed as revision 16704 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index cdb5e20ca7..ee6b01784a 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -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);