summaryrefslogtreecommitdiff
path: root/libavcodec/apedec.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2011-10-11 14:35:33 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2011-10-28 11:47:28 -0400
commit0927154d378317be29dd997bda92b305e6dabc00 (patch)
treef8fb5ed2c3f3e49577e8fdb1b7e34eb0222f6dfb /libavcodec/apedec.c
parent5b8009f4c80d8fd96523c8c163441ad4011ad472 (diff)
apedec: use FFALIGN macro for internal data buffer size
Diffstat (limited to 'libavcodec/apedec.c')
-rw-r--r--libavcodec/apedec.c2
1 files changed, 1 insertions, 1 deletions
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;