1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

apedec: use FFALIGN macro for internal data buffer size

This commit is contained in:
Justin Ruggles 2011-10-11 14:35:33 -04:00
parent 5b8009f4c8
commit 0927154d37

View File

@ -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;