lavfi/tinterlace: set inlink->cur to NULL, since it is stored internally

If not set to NULL, the reference is freed by ff_end_frame(), and later
accessed in end_frame() by the filter code, causing a crash.
This commit is contained in:
Stefano Sabatini 2012-09-04 20:36:02 +02:00
parent 29e972f67c
commit fd5293d216

View File

@ -206,6 +206,7 @@ static int start_frame(AVFilterLink *inlink, AVFilterBufferRef *picref)
avfilter_unref_buffer(tinterlace->cur);
tinterlace->cur = tinterlace->next;
tinterlace->next = picref;
inlink->cur_buf = NULL;
return 0;
}