summaryrefslogtreecommitdiff
path: root/libavfilter/video.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2012-06-14 13:12:18 +0200
committerStefano Sabatini <stefasab@gmail.com>2012-06-16 00:30:27 +0200
commit635a25954e96bc7b765dc84e9118fca0a61dcaf9 (patch)
treea217ca037f32da00d95497609c8969d3b64a9398 /libavfilter/video.c
parentf0394f28c38fffe05b3b4b3c1d8c00d9defb6ecc (diff)
lavfi/video: set output frame w/h properties in default_start_frame()
Use the same values of the video output link. Avoid the need to override the default_start_frame() with an ad-hoc start_frame() callback. In particular, fix the super2xsai filter which was setting the input w/h values in the output.
Diffstat (limited to 'libavfilter/video.c')
-rw-r--r--libavfilter/video.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/video.c b/libavfilter/video.c
index dfcfbb7387..dce3478ea5 100644
--- a/libavfilter/video.c
+++ b/libavfilter/video.c
@@ -164,6 +164,8 @@ static void default_start_frame(AVFilterLink *inlink, AVFilterBufferRef *picref)
if (outlink) {
outlink->out_buf = ff_get_video_buffer(outlink, AV_PERM_WRITE, outlink->w, outlink->h);
avfilter_copy_buffer_ref_props(outlink->out_buf, picref);
+ outlink->out_buf->video->w = outlink->w;
+ outlink->out_buf->video->h = outlink->h;
ff_start_frame(outlink, avfilter_ref_buffer(outlink->out_buf, ~0));
}
}