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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2011-04-26 18:18:02 +02:00
parent dc1de56948
commit d84f191d37

View File

@ -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;