[Ffmpeg-cvslog] r8592 - in trunk/vhook: fish.c imlib2.c null.c ppm.c watermark.c

diego subversion
Sun Apr 1 19:23:16 CEST 2007


Author: diego
Date: Sun Apr  1 19:23:15 2007
New Revision: 8592

Modified:
   trunk/vhook/fish.c
   trunk/vhook/imlib2.c
   trunk/vhook/null.c
   trunk/vhook/ppm.c
   trunk/vhook/watermark.c

Log:
Replace forbidden exit() by return() V?ctor Paesa, wzrlpy arsystel com.


Modified: trunk/vhook/fish.c
==============================================================================
--- trunk/vhook/fish.c	(original)
+++ trunk/vhook/fish.c	Sun Apr  1 19:23:15 2007
@@ -354,7 +354,7 @@ void Process(void *ctx, AVPicture *pictu
                 if (ci->toRGB_convert_ctx == NULL) {
                     av_log(NULL, AV_LOG_ERROR,
                            "Cannot initialize the toRGB conversion context\n");
-                    exit(1);
+                    return;
                 }
                 // img_convert parameters are          2 first destination, then 4 source
                 // sws_scale   parameters are context, 4 first source,      then 2 destination

Modified: trunk/vhook/imlib2.c
==============================================================================
--- trunk/vhook/imlib2.c	(original)
+++ trunk/vhook/imlib2.c	Sun Apr  1 19:23:15 2007
@@ -350,7 +350,7 @@ void Process(void *ctx, AVPicture *pictu
     if (ci->toRGB_convert_ctx == NULL) {
         av_log(NULL, AV_LOG_ERROR,
                "Cannot initialize the toRGB conversion context\n");
-        exit(1);
+        return;
     }
 
 // img_convert parameters are          2 first destination, then 4 source
@@ -436,7 +436,7 @@ void Process(void *ctx, AVPicture *pictu
     if (ci->fromRGB_convert_ctx == NULL) {
         av_log(NULL, AV_LOG_ERROR,
                "Cannot initialize the fromRGB conversion context\n");
-        exit(1);
+        return;
     }
 // img_convert parameters are          2 first destination, then 4 source
 // sws_scale   parameters are context, 4 first source,      then 2 destination

Modified: trunk/vhook/null.c
==============================================================================
--- trunk/vhook/null.c	(original)
+++ trunk/vhook/null.c	Sun Apr  1 19:23:15 2007
@@ -81,7 +81,7 @@ void Process(void *ctx, AVPicture *pictu
         if (ci->toRGB_convert_ctx == NULL) {
             av_log(NULL, AV_LOG_ERROR,
                    "Cannot initialize the toRGB conversion context\n");
-            exit(1);
+            return;
         }
 // img_convert parameters are          2 first destination, then 4 source
 // sws_scale   parameters are context, 4 first source,      then 2 destination
@@ -102,7 +102,7 @@ void Process(void *ctx, AVPicture *pictu
         if (ci->fromRGB_convert_ctx == NULL) {
             av_log(NULL, AV_LOG_ERROR,
                    "Cannot initialize the fromRGB conversion context\n");
-            exit(1);
+            return;
         }
 // img_convert parameters are          2 first destination, then 4 source
 // sws_scale   parameters are context, 4 first source,      then 2 destination

Modified: trunk/vhook/ppm.c
==============================================================================
--- trunk/vhook/ppm.c	(original)
+++ trunk/vhook/ppm.c	Sun Apr  1 19:23:15 2007
@@ -266,7 +266,7 @@ void Process(void *ctx, AVPicture *pictu
             if (ci->toRGB_convert_ctx == NULL) {
                 av_log(NULL, AV_LOG_ERROR,
                        "Cannot initialize the toRGB conversion context\n");
-                exit(1);
+                return;
             }
 
 // img_convert parameters are          2 first destination, then 4 source
@@ -335,7 +335,7 @@ void Process(void *ctx, AVPicture *pictu
         if (ci->fromRGB_convert_ctx == NULL) {
             av_log(NULL, AV_LOG_ERROR,
                    "Cannot initialize the fromRGB conversion context\n");
-            exit(1);
+            return;
         }
 
 // img_convert parameters are          2 first destination, then 4 source

Modified: trunk/vhook/watermark.c
==============================================================================
--- trunk/vhook/watermark.c	(original)
+++ trunk/vhook/watermark.c	Sun Apr  1 19:23:15 2007
@@ -224,7 +224,7 @@ static void Process0(void *ctx,
         if (ci->toRGB_convert_ctx == NULL) {
             av_log(NULL, AV_LOG_ERROR,
                    "Cannot initialize the toRGB conversion context\n");
-            exit(1);
+            return;
         }
 
 // img_convert parameters are          2 first destination, then 4 source
@@ -299,7 +299,7 @@ static void Process0(void *ctx,
         if (ci->fromRGB_convert_ctx == NULL) {
             av_log(NULL, AV_LOG_ERROR,
                    "Cannot initialize the fromRGB conversion context\n");
-            exit(1);
+            return;
         }
 // img_convert parameters are          2 first destination, then 4 source
 // sws_scale   parameters are context, 4 first source,      then 2 destination
@@ -355,7 +355,7 @@ static void Process1(void *ctx,
         if (ci->toRGB_convert_ctx == NULL) {
             av_log(NULL, AV_LOG_ERROR,
                    "Cannot initialize the toRGB conversion context\n");
-            exit(1);
+            return;
         }
 
 // img_convert parameters are          2 first destination, then 4 source
@@ -410,7 +410,7 @@ static void Process1(void *ctx,
         if (ci->fromRGB_convert_ctx == NULL) {
             av_log(NULL, AV_LOG_ERROR,
                    "Cannot initialize the fromRGB conversion context\n");
-            exit(1);
+            return;
         }
 // img_convert parameters are          2 first destination, then 4 source
 // sws_scale   parameters are context, 4 first source,      then 2 destination
@@ -610,7 +610,7 @@ int get_watermark_picture(ContextInfo *c
                     if (ci->watermark_convert_ctx == NULL) {
                         av_log(NULL, AV_LOG_ERROR,
                               "Cannot initialize the watermark conversion context\n");
-                        exit(1);
+                        return -1;
                     }
 // img_convert parameters are          2 first destination, then 4 source
 // sws_scale   parameters are context, 4 first source,      then 2 destination




More information about the ffmpeg-cvslog mailing list