vf_idet: fix free after use

Fixes ticket #2449

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit cac749a551)
This commit is contained in:
Michael Niedermayer
2012-10-11 00:47:15 +02:00
committed by Carl Eugen Hoyos
parent 13cf445358
commit aef81fa75d

View File

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