You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avfilter/vf_zoompan: unbreak filtering with video input
Inserting fifo appears to be working solution to not get filter_frame request we do not want. Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
@@ -221,10 +221,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
|
|||||||
double nb_frames;
|
double nb_frames;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (s->in) {
|
av_assert0(s->in == NULL);
|
||||||
av_frame_free(&in);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
s->finished = 0;
|
s->finished = 0;
|
||||||
s->var_values[VAR_IN_W] = s->var_values[VAR_IW] = in->width;
|
s->var_values[VAR_IN_W] = s->var_values[VAR_IW] = in->width;
|
||||||
@@ -336,6 +333,7 @@ static const AVFilterPad inputs[] = {
|
|||||||
.name = "default",
|
.name = "default",
|
||||||
.type = AVMEDIA_TYPE_VIDEO,
|
.type = AVMEDIA_TYPE_VIDEO,
|
||||||
.filter_frame = filter_frame,
|
.filter_frame = filter_frame,
|
||||||
|
.needs_fifo = 1,
|
||||||
},
|
},
|
||||||
{ NULL }
|
{ NULL }
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user