aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/seek-test.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2011-09-21 18:46:56 +0200
committerDiego Biurrun <diego@biurrun.de>2011-12-08 01:00:58 +0100
commit9a5d6c23c5cc25b887f996d55f96dfbacf760e88 (patch)
tree78a4bad898880ef2a740306908204a008980a581 /libavformat/seek-test.c
parentbe0675ce672b7788b0f1277704be663f415d6498 (diff)
downloadffmpeg-9a5d6c23c5cc25b887f996d55f96dfbacf760e88.tar.gz
tests/tools/examples: Replace direct exit() calls by return.
Diffstat (limited to 'libavformat/seek-test.c')
-rw-r--r--libavformat/seek-test.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libavformat/seek-test.c b/libavformat/seek-test.c
index 363be8a88b..43dee56fe7 100644
--- a/libavformat/seek-test.c
+++ b/libavformat/seek-test.c
@@ -28,7 +28,6 @@
#include "libavutil/mathematics.h"
#include "libavformat/avformat.h"
-#undef exit
#undef printf
#undef fprintf
@@ -75,7 +74,7 @@ int main(int argc, char **argv)
if (argc != 2) {
printf("usage: %s input_file\n"
"\n", argv[0]);
- exit(1);
+ return 1;
}
filename = argv[1];
@@ -84,13 +83,13 @@ int main(int argc, char **argv)
av_dict_free(&format_opts);
if (ret < 0) {
fprintf(stderr, "cannot open %s\n", filename);
- exit(1);
+ return 1;
}
ret = avformat_find_stream_info(ic, NULL);
if (ret < 0) {
fprintf(stderr, "%s: could not find codec parameters\n", filename);
- exit(1);
+ return 1;
}
for(i=0; ; i++){