summaryrefslogtreecommitdiff
path: root/libavfilter/graphparser.c
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2008-05-24 20:38:15 +0000
committerVitor Sessak <vitor1001@gmail.com>2008-05-24 20:38:15 +0000
commit046f49baa249115e99d40fe3462348b4dd675ee0 (patch)
treee0542be62b0cc882c3b9f9fcfc738cfcd3dd84b6 /libavfilter/graphparser.c
parentf0703f5d9462a208d2e00b3150b6cd6a64004700 (diff)
Handle av_realloc() failure
Commited in SoC by Vitor Sessak on 2008-04-04 15:35:38 Originally committed as revision 13287 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/graphparser.c')
-rw-r--r--libavfilter/graphparser.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c
index 78999af3e9..0a77d07ecf 100644
--- a/libavfilter/graphparser.c
+++ b/libavfilter/graphparser.c
@@ -56,7 +56,10 @@ static int create_filter(AVFilterGraph *ctx, int index, char *name,
"error creating filter '%s'\n", name);
return -1;
}
- avfilter_graph_add_filter(ctx, filt);
+
+ if (avfilter_graph_add_filter(ctx, filt) < 0)
+ return -1;
+
if(avfilter_init_filter(filt, args, NULL)) {
av_log(&log_ctx, AV_LOG_ERROR,
"error initializing filter '%s'\n", name);