vf_yadif: unset cur_buf on the input link.

The buffer is stored internally, so this prevents it from being unreffed
automatically.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
pull/28/head
Anton Khirnov 12 years ago committed by Luca Barbato
parent f431315a86
commit b5c8aa745e
  1. 1
      libavfilter/vf_yadif.c

@ -221,6 +221,7 @@ static int start_frame(AVFilterLink *link, AVFilterBufferRef *picref)
yadif->prev = yadif->cur;
yadif->cur = yadif->next;
yadif->next = picref;
link->cur_buf = NULL;
if (!yadif->cur)
return 0;

Loading…
Cancel
Save