aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2012-02-13 23:21:50 +0100
committerClément Bœsch <ubitux@gmail.com>2012-02-13 23:32:35 +0100
commit73413e6bcab34ef8509a014403718237f0f8aa45 (patch)
tree07b90367166617f20712f240927ddbf1d71e6270 /ffmpeg.c
parent048cc80292107276441014518f7f5a6fa3bad462 (diff)
downloadffmpeg-73413e6bcab34ef8509a014403718237f0f8aa45.tar.gz
ffmpeg: raise ENOMEM on avfilter_graph_alloc() failure.
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index d1851e1589..03bcccd81d 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -620,6 +620,8 @@ static int configure_video_filters(InputStream *ist, OutputStream *ost)
int ret;
ost->graph = avfilter_graph_alloc();
+ if (!ost->graph)
+ return AVERROR(ENOMEM);
if (ist->st->sample_aspect_ratio.num) {
sample_aspect_ratio = ist->st->sample_aspect_ratio;