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:
parent
5b8009f4c8
commit
0927154d37
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user