On Mon, May 14, 2012 at 12:47:11PM +0200, Robert Nagy wrote:
> --- a/libavfilter/vf_yadif.c
> +++ b/libavfilter/vf_yadif.c
> @@ -220,7 +220,9 @@ static void return_frame(AVFilterContext *ctx, int
> is_second)
> if (is_second) {
> int64_t prev_pts = yadif->prev->pts;
> int64_t cur_pts = yadif->cur->pts;
> - int64_t next_pts = yadif->next->pts;
> + int64_t next_pts = yadif->next->pts ?
> + yadif->next->pts :
> + yadif->cur->pts * 2 - yadif->prev->pts;
Indentation is still off. The yadif-> lines should be aligned.
> @@ -303,8 +305,18 @@ static int request_frame(AVFilterLink *link)
>
> - if ((ret = avfilter_request_frame(link->src->inputs[0])))
> + if(!yadif->next && yadif->cur)
> + return AVERROR_EOF;
if (
Diego
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel