mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-28 03:18:55 +08:00
apedec: use FFALIGN macro for internal data buffer size
This commit is contained in:
@ -843,7 +843,7 @@ static int ape_decode_frame(AVCodecContext *avctx,
|
|||||||
return AVERROR_INVALIDDATA;
|
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)
|
if (!tmp_data)
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
s->data = tmp_data;
|
s->data = tmp_data;
|
||||||
|
Reference in New Issue
Block a user