[FFmpeg-cvslog] vf_yadif: fix missing error handling for avfilter_poll_frame()
Robert Nagy
git at videolan.org
Mon May 7 23:06:25 CEST 2012
ffmpeg | branch: master | Robert Nagy <ronag89 at gmail.com> | Sun Apr 15 15:46:37 2012 +0200| [a07578f3f2a5ad5cd5dcc5de5ee173254f191435] | committer: Diego Biurrun
vf_yadif: fix missing error handling for avfilter_poll_frame()
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a07578f3f2a5ad5cd5dcc5de5ee173254f191435
---
libavfilter/vf_yadif.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/libavfilter/vf_yadif.c b/libavfilter/vf_yadif.c
index 12b3783..790dda5 100644
--- a/libavfilter/vf_yadif.c
+++ b/libavfilter/vf_yadif.c
@@ -316,11 +316,15 @@ static int poll_frame(AVFilterLink *link)
return 1;
val = avfilter_poll_frame(link->src->inputs[0]);
+ if (val <= 0)
+ return val;
if (val==1 && !yadif->next) { //FIXME change API to not requre this red tape
if ((ret = avfilter_request_frame(link->src->inputs[0])) < 0)
return ret;
val = avfilter_poll_frame(link->src->inputs[0]);
+ if (val <= 0)
+ return val;
}
assert(yadif->next || !val);
More information about the ffmpeg-cvslog
mailing list