1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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>
This commit is contained in:
Anton Khirnov 2012-07-25 08:42:27 +02:00 committed by Luca Barbato
parent f431315a86
commit b5c8aa745e

View File

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