mirror of https://git.ffmpeg.org/ffmpeg.git
lavfi/decimate: remove usage of link->cur_buf.
This commit is contained in:
parent
33e0eb5109
commit
5673a0102a
|
@ -198,7 +198,6 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *cur)
|
||||||
} else {
|
} else {
|
||||||
avfilter_unref_buffer(decimate->ref);
|
avfilter_unref_buffer(decimate->ref);
|
||||||
decimate->ref = cur;
|
decimate->ref = cur;
|
||||||
inlink->cur_buf = NULL;
|
|
||||||
decimate->drop_count = FFMIN(-1, decimate->drop_count-1);
|
decimate->drop_count = FFMIN(-1, decimate->drop_count-1);
|
||||||
|
|
||||||
if (ret = ff_filter_frame(outlink, avfilter_ref_buffer(cur, ~AV_PERM_WRITE)) < 0)
|
if (ret = ff_filter_frame(outlink, avfilter_ref_buffer(cur, ~AV_PERM_WRITE)) < 0)
|
||||||
|
|
Loading…
Reference in New Issue