aboutsummaryrefslogtreecommitdiffstats
path: root/vhook/watermark.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2007-04-01 17:23:15 +0000
committerDiego Biurrun <diego@biurrun.de>2007-04-01 17:23:15 +0000
commitca345e442d121963c7e75bba7a3e70d9f29db5aa (patch)
treeefdc87784634f956a7e48febf6961a048b55293d /vhook/watermark.c
parentf321635a6eb6a826db7213f5c545a01b9c87104c (diff)
downloadffmpeg-ca345e442d121963c7e75bba7a3e70d9f29db5aa.tar.gz
Replace forbidden exit() by return() VĂ­ctor Paesa, wzrlpy arsystel com.
Originally committed as revision 8592 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'vhook/watermark.c')
-rw-r--r--vhook/watermark.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/vhook/watermark.c b/vhook/watermark.c
index db9092ff1c..aa6fee63c2 100644
--- a/vhook/watermark.c
+++ b/vhook/watermark.c
@@ -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 *ci, int cleanup)
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