On Wed, Oct 26, 2011 at 04:18:33PM -0400, Justin Ruggles wrote:
> ---
>  libavcodec/apedec.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/libavcodec/apedec.c b/libavcodec/apedec.c
> index 63b2e32..57381b3 100644
> --- a/libavcodec/apedec.c
> +++ b/libavcodec/apedec.c
> @@ -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;
> -- 

OK
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to