diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2013-07-26 10:31:05 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-07-26 13:59:30 +0200 |
commit | af2a196e669cf7f00735a1df5889db35f3be87eb (patch) | |
tree | ed55e4d41d03287b0d1bea451dd5e6a51409c1a9 /libavfilter/buffersrc.c | |
parent | 2a1a599bcb2b9b54aa32a7fe62593e671d6457d3 (diff) |
lavfi: add attribute_align_arg to all public entry points
Previously it was partly only added to central functions called
internally, however if GCC would inline these into the public fuction, the
alignment attribute would not take effect.
Instead, add it to all public entry points to avoid these problems.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/buffersrc.c')
-rw-r--r-- | libavfilter/buffersrc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c index b152779066..a9174b8c21 100644 --- a/libavfilter/buffersrc.c +++ b/libavfilter/buffersrc.c @@ -77,13 +77,13 @@ typedef struct { return AVERROR(EINVAL);\ } -int av_buffersrc_write_frame(AVFilterContext *ctx, const AVFrame *frame) +int attribute_align_arg av_buffersrc_write_frame(AVFilterContext *ctx, const AVFrame *frame) { return av_buffersrc_add_frame_flags(ctx, (AVFrame *)frame, AV_BUFFERSRC_FLAG_KEEP_REF); } -int av_buffersrc_add_frame(AVFilterContext *ctx, AVFrame *frame) +int attribute_align_arg av_buffersrc_add_frame(AVFilterContext *ctx, AVFrame *frame) { return av_buffersrc_add_frame_flags(ctx, frame, 0); } @@ -91,7 +91,7 @@ int av_buffersrc_add_frame(AVFilterContext *ctx, AVFrame *frame) static int av_buffersrc_add_frame_internal(AVFilterContext *ctx, AVFrame *frame, int flags); -int av_buffersrc_add_frame_flags(AVFilterContext *ctx, AVFrame *frame, int flags) +int attribute_align_arg av_buffersrc_add_frame_flags(AVFilterContext *ctx, AVFrame *frame, int flags) { AVFrame *copy = NULL; int ret = 0; @@ -115,8 +115,8 @@ int av_buffersrc_add_frame_flags(AVFilterContext *ctx, AVFrame *frame, int flags return ret; } -static int attribute_align_arg av_buffersrc_add_frame_internal(AVFilterContext *ctx, - AVFrame *frame, int flags) +static int av_buffersrc_add_frame_internal(AVFilterContext *ctx, + AVFrame *frame, int flags) { BufferSourceContext *s = ctx->priv; AVFrame *copy; |