aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
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 /libavcodec
parentbe0675ce672b7788b0f1277704be663f415d6498 (diff)
downloadffmpeg-9a5d6c23c5cc25b887f996d55f96dfbacf760e88.tar.gz
tests/tools/examples: Replace direct exit() calls by return.
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/fft-test.c5
-rw-r--r--libavcodec/motion-test.c4
2 files changed, 2 insertions, 7 deletions
diff --git a/libavcodec/fft-test.c b/libavcodec/fft-test.c
index 59a53ddeb6..f890de61aa 100644
--- a/libavcodec/fft-test.c
+++ b/libavcodec/fft-test.c
@@ -37,8 +37,6 @@
#include <stdlib.h>
#include <string.h>
-#undef exit
-
/* reference fft */
#define MUL16(a,b) ((a) * (b))
@@ -228,7 +226,6 @@ static void help(void)
"-n b set the transform size to 2^b\n"
"-f x set scale factor for output data of (I)MDCT to x\n"
);
- exit(1);
}
enum tf_transform {
@@ -267,7 +264,7 @@ int main(int argc, char **argv)
switch(c) {
case 'h':
help();
- break;
+ return 1;
case 's':
do_speed = 1;
break;
diff --git a/libavcodec/motion-test.c b/libavcodec/motion-test.c
index f689824f8e..b054fc9d1b 100644
--- a/libavcodec/motion-test.c
+++ b/libavcodec/motion-test.c
@@ -33,7 +33,6 @@
#include "dsputil.h"
#include "libavutil/lfg.h"
-#undef exit
#undef printf
#define WIDTH 64
@@ -61,7 +60,6 @@ static void help(void)
{
printf("motion-test [-h]\n"
"test motion implementations\n");
- exit(1);
}
static int64_t gettime(void)
@@ -138,7 +136,7 @@ int main(int argc, char **argv)
switch(c) {
case 'h':
help();
- break;
+ return 1;
}
}