Browse Source

vf_yadif: fix missing error handling for avfilter_poll_frame()

tags/n0.11
Robert Nagy Diego Biurrun 14 years ago
parent
commit
a07578f3f2
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      libavfilter/vf_yadif.c

+ 4
- 0
libavfilter/vf_yadif.c View File

@@ -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);



Loading…
Cancel
Save