On 2012-12-07 23:03:06 +0000, Måns Rullgård wrote:
> Signed-off-by: Mans Rullgard <[email protected]>
> ---
>  libavcodec/takdec.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/libavcodec/takdec.c b/libavcodec/takdec.c
> index 0ac870c..d47db48 100644
> --- a/libavcodec/takdec.c
> +++ b/libavcodec/takdec.c
> @@ -601,10 +601,12 @@ static int decorrelate(TAKDecContext *s, int c1, int 
> c2, int length)
>      case 6:
>          FFSWAP(int32_t*, p1, p2);
>      case 7: {
> -        LOCAL_ALIGNED_16(int16_t, filter, [MAX_PREDICTORS]) = { 0 };
> +        LOCAL_ALIGNED_16(int16_t, filter, [MAX_PREDICTORS]);
>          int length2, order_half, filter_order, dval1, dval2;
>          int av_uninit(code_size);
>  
> +        memset(filter, 0, MAX_PREDICTORS * sizeof(*filter));
> +
>          if (length < 256)
>              return AVERROR_INVALIDDATA;

ok but I've already pushed Josh's patch

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

Reply via email to