mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 19:30:05 +00:00
lavfi/vf_mpdecimate: remove request_frame().
It is no longer needed since looping is not necessary.
This commit is contained in:
parent
05af8608c2
commit
63f7bee752
@ -224,19 +224,6 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *cur)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int request_frame(AVFilterLink *outlink)
|
||||
{
|
||||
DecimateContext *decimate = outlink->src->priv;
|
||||
AVFilterLink *inlink = outlink->src->inputs[0];
|
||||
int ret;
|
||||
|
||||
do {
|
||||
ret = ff_request_frame(inlink);
|
||||
} while (decimate->drop_count > 0 && ret >= 0);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
static const AVFilterPad mpdecimate_inputs[] = {
|
||||
{
|
||||
.name = "default",
|
||||
@ -251,7 +238,6 @@ static const AVFilterPad mpdecimate_outputs[] = {
|
||||
{
|
||||
.name = "default",
|
||||
.type = AVMEDIA_TYPE_VIDEO,
|
||||
.request_frame = request_frame,
|
||||
},
|
||||
{ NULL }
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user