From 20c86571ccc71412781d4a4813e4693e0c42aec6 Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Fri, 15 Mar 2013 20:44:57 +0100 Subject: lavfi: let gcc realign the stack on public graph driving functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The functions which actually drive the filter graph by pushing frames through it need to ensure an aligned stack for SIMD functions. This fixes a crash in YADIF filter when using a mingw build in a MSVC application. Signed-off-by: Martin Storsjö --- libavfilter/buffersrc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavfilter/buffersrc.c') diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c index a927f26c19..5e982eab54 100644 --- a/libavfilter/buffersrc.c +++ b/libavfilter/buffersrc.c @@ -88,7 +88,8 @@ int av_buffersrc_write_frame(AVFilterContext *ctx, const AVFrame *frame) return ret; } -int av_buffersrc_add_frame(AVFilterContext *ctx, AVFrame *frame) +int attribute_align_arg av_buffersrc_add_frame(AVFilterContext *ctx, + AVFrame *frame) { BufferSourceContext *s = ctx->priv; AVFrame *copy; -- cgit v1.2.3