[FFmpeg-cvslog] rotozoom: Return an error value instead of calling exit().

Diego Biurrun git at videolan.org
Thu May 12 04:55:11 CEST 2011


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Mon May  9 11:16:55 2011 +0200| [771339ca206468636a64a6041852068be2da3dd2] | committer: Diego Biurrun

rotozoom: Return an error value instead of calling exit().

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=771339ca206468636a64a6041852068be2da3dd2
---

 tests/rotozoom.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tests/rotozoom.c b/tests/rotozoom.c
index aebcc8e..644ae8b 100644
--- a/tests/rotozoom.c
+++ b/tests/rotozoom.c
@@ -279,7 +279,7 @@ int main(int argc, char **argv)
     if (argc != 3) {
         printf("usage: %s directory/ image.pnm\n"
                "generate a test video stream\n", argv[0]);
-        exit(1);
+        return 1;
     }
 
     w = DEFAULT_WIDTH;



More information about the ffmpeg-cvslog mailing list