[FFmpeg-cvslog] ffmpeg: raise ENOMEM on avfilter_graph_alloc() failure.

Clément Bœsch git at videolan.org
Tue Feb 14 00:12:55 CET 2012


ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Mon Feb 13 23:21:50 2012 +0100| [73413e6bcab34ef8509a014403718237f0f8aa45] | committer: Clément Bœsch

ffmpeg: raise ENOMEM on avfilter_graph_alloc() failure.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=73413e6bcab34ef8509a014403718237f0f8aa45
---

 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;



More information about the ffmpeg-cvslog mailing list