On Sat, May 12, 2012 at 07:52:02PM +0200, Robert Nagy wrote:
>
> --- a/libavfilter/vf_yadif.c
> +++ b/libavfilter/vf_yadif.c
> @@ -293,10 +293,19 @@ static int request_frame(AVFilterLink *link)
>
> do {
> - int ret;
> -
> - if ((ret = avfilter_request_frame(link->src->inputs[0])))
> + if(!yadif->next && yadif->cur) { // If there is no next then it is
> EOF.
> + return AVERROR_EOF;
> + }
> +
> + int ret = avfilter_request_frame(link->src->inputs[0]);
> +
> + if(ret == AVERROR_EOF && yadif->cur) {
> + start_frame(link->src->inputs[0], NULL);
> + end_frame(link->src->inputs[0]);
> + }
> + else if(ret < 0) {
> return ret;
> + }
nit: if (
Diego
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel