[FFmpeg-cvslog] vsrc_buffer: Reinit scale filter when an existing filter is used.

Michael Niedermayer git at videolan.org
Tue Apr 26 18:22:47 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Apr 26 18:18:02 2011 +0200| [d84f191d37b8123203dff250531a4b4c0d5f587a] | committer: Michael Niedermayer

vsrc_buffer: Reinit scale filter when an existing filter is used.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d84f191d37b8123203dff250531a4b4c0d5f587a
---

 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 f0904ff..64cb030 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;



More information about the ffmpeg-cvslog mailing list