[FFmpeg-cvslog] apedec: use FFALIGN macro for internal data buffer size
Justin Ruggles
git at videolan.org
Sat Oct 29 02:31:38 CEST 2011
ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Tue Oct 11 14:35:33 2011 -0400| [0927154d378317be29dd997bda92b305e6dabc00] | committer: Justin Ruggles
apedec: use FFALIGN macro for internal data buffer size
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0927154d378317be29dd997bda92b305e6dabc00
---
libavcodec/apedec.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/apedec.c b/libavcodec/apedec.c
index 133eb2d..8b1af80 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;
More information about the ffmpeg-cvslog
mailing list