mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-26 17:32:06 +00:00
vsrc_buffer: Reinit scale filter when an existing filter is used.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
dc1de56948
commit
d84f191d37
@ -84,6 +84,8 @@ int av_vsrc_buffer_add_frame2(AVFilterContext *buffer_filter, AVFrame *frame,
|
||||
scale->outputs[0]->time_base = scale->inputs[0]->time_base;
|
||||
|
||||
scale->outputs[0]->format= c->pix_fmt;
|
||||
} else if(!strcmp(scale->filter->name, "scale")) {
|
||||
scale->filter->init(scale, c->sws_param, NULL);
|
||||
}
|
||||
|
||||
c->pix_fmt= scale->inputs[0]->format= pix_fmt;
|
||||
|
Loading…
Reference in New Issue
Block a user