Commit d84f191d authored by Michael Niedermayer's avatar Michael Niedermayer

vsrc_buffer: Reinit scale filter when an existing filter is used.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent dc1de569
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment