From 075933a0687974fca74d6d4ac388d24766d8dc78 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 26 Apr 2011 23:52:22 +0200 Subject: [PATCH] vsrc_buffer: 10l mixed up input & output sizes. (funnily this worked 99% of the time) Signed-off-by: Michael Niedermayer --- libavfilter/vsrc_buffer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/vsrc_buffer.c b/libavfilter/vsrc_buffer.c index 64cb030c8c..72ee99f123 100644 --- a/libavfilter/vsrc_buffer.c +++ b/libavfilter/vsrc_buffer.c @@ -85,6 +85,7 @@ int av_vsrc_buffer_add_frame2(AVFilterContext *buffer_filter, AVFrame *frame, scale->outputs[0]->format= c->pix_fmt; } else if(!strcmp(scale->filter->name, "scale")) { + snprintf(c->sws_param, 255, "%d:%d:%s", scale->outputs[0]->w, scale->outputs[0]->h, sws_param); scale->filter->init(scale, c->sws_param, NULL); }