From 0927154d378317be29dd997bda92b305e6dabc00 Mon Sep 17 00:00:00 2001 From: Justin Ruggles Date: Tue, 11 Oct 2011 14:35:33 -0400 Subject: apedec: use FFALIGN macro for internal data buffer size --- libavcodec/apedec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/apedec.c') diff --git a/libavcodec/apedec.c b/libavcodec/apedec.c index 133eb2da58..8b1af80934 100644 --- a/libavcodec/apedec.c +++ b/libavcodec/apedec.c @@ -843,7 +843,7 @@ static int ape_decode_frame(AVCodecContext *avctx, return AVERROR_INVALIDDATA; } - tmp_data = av_realloc(s->data, (buf_size + 3) & ~3); + tmp_data = av_realloc(s->data, FFALIGN(buf_size, 4)); if (!tmp_data) return AVERROR(ENOMEM); s->data = tmp_data; -- cgit v1.2.1