mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-29 06:20:29 +00:00
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:
parent
29e972f67c
commit
fd5293d216
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user