Browse Source

apedec: use FFALIGN macro for internal data buffer size

tags/n0.9
Justin Ruggles 14 years ago
parent
commit
0927154d37
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/apedec.c

+ 1
- 1
libavcodec/apedec.c 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;


Loading…
Cancel
Save