[FFmpeg-devel] [PATCH 1/3] ffmpeg: raise ENOMEM on avfilter_graph_alloc() failure.
Clément Bœsch
ubitux at gmail.com
Mon Feb 13 23:32:47 CET 2012
---
ffmpeg.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/ffmpeg.c b/ffmpeg.c
index d1851e1..03bcccd 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;
--
1.7.9
More information about the ffmpeg-devel
mailing list