Commit 0927154d authored by Justin Ruggles's avatar Justin Ruggles

apedec: use FFALIGN macro for internal data buffer size

parent 5b8009f4
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment