X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fmotion-test.c;h=f187183c12954f262a243ef4dfa26235e333a3aa;hb=ca1bae3983c6592efe4635e7e35a1f85833674b8;hp=85ea1045b48f82c31ac8f3234a9cd88e656a02e0;hpb=95d6e5bdd58d5caaa52c57bad1e1d87df59fb7f8;p=ffmpeg diff --git a/libavcodec/motion-test.c b/libavcodec/motion-test.c index 85ea1045b48..f187183c129 100644 --- a/libavcodec/motion-test.c +++ b/libavcodec/motion-test.c @@ -33,14 +33,13 @@ #include "dsputil.h" #include "libavutil/lfg.h" -#undef exit #undef printf #define WIDTH 64 #define HEIGHT 64 -uint8_t img1[WIDTH * HEIGHT]; -uint8_t img2[WIDTH * HEIGHT]; +static uint8_t img1[WIDTH * HEIGHT]; +static uint8_t img2[WIDTH * HEIGHT]; static void fill_random(uint8_t *tab, int size) { @@ -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; } }