[FFmpeg-cvslog] vf_scale.c: propagate error code

Michael Niedermayer git at videolan.org
Sat Oct 1 04:03:35 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Oct  1 03:16:32 2011 +0200| [8447703c16b9e6fdc48ce92553ec1cfa2e359b84] | committer: Michael Niedermayer

vf_scale.c: propagate error code

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavfilter/vf_scale.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c
index 5cc9e9e..04b8d10 100644
--- a/libavfilter/vf_scale.c
+++ b/libavfilter/vf_scale.c
@@ -237,7 +237,7 @@ static int config_props(AVFilterLink *outlink)
     scale->isws[1] = sws_getContext(inlink ->w, inlink ->h/2, inlink ->format,
                                     outlink->w, outlink->h/2, outlink->format,
                                     scale->flags, NULL, NULL, NULL);
-    if (!scale->sws)
+    if (!scale->sws || !scale->isws[0] || !scale->isws[1])
         return AVERROR(EINVAL);
 
     if (inlink->sample_aspect_ratio.num){



More information about the ffmpeg-cvslog mailing list