diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-04-26 18:18:02 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-04-26 18:18:02 +0200 |
commit | d84f191d37b8123203dff250531a4b4c0d5f587a (patch) | |
tree | 07404d7962330a34ba08e05400fc8861e326b16f | |
parent | dc1de56948960bea12a8b6c1aa77398308bec358 (diff) | |
download | ffmpeg-d84f191d37b8123203dff250531a4b4c0d5f587a.tar.gz |
vsrc_buffer: Reinit scale filter when an existing filter is used.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavfilter/vsrc_buffer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/vsrc_buffer.c b/libavfilter/vsrc_buffer.c index f0904ff1e9..64cb030c8c 100644 --- a/libavfilter/vsrc_buffer.c +++ b/libavfilter/vsrc_buffer.c @@ -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; |