[FFmpeg-cvslog] yadif: Fix assert() failure

Michael Niedermayer git at videolan.org
Wed Apr 27 03:56:14 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Apr  2 20:26:39 2011 +0200| [d85e18e6e342bf58f8e13a95f601082e5d70803a] | committer: Anton Khirnov

yadif: Fix assert() failure

Signed-off-by: Anton Khirnov <anton at khirnov.net>

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

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

diff --git a/libavfilter/vf_yadif.c b/libavfilter/vf_yadif.c
index 7a488d6..0396fe4 100644
--- a/libavfilter/vf_yadif.c
+++ b/libavfilter/vf_yadif.c
@@ -274,7 +274,7 @@ static int poll_frame(AVFilterLink *link)
             return ret;
         val = avfilter_poll_frame(link->src->inputs[0]);
     }
-    assert(yadif->next);
+    assert(yadif->next || !val);
 
     return val * ((yadif->mode&1)+1);
 }



More information about the ffmpeg-cvslog mailing list