On 01/31/2012 01:21 PM, Alex Converse wrote:

> Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
> ---
>  libavcodec/ac3dsp.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/libavcodec/ac3dsp.c b/libavcodec/ac3dsp.c
> index 98c7357..8ff9f7d 100644
> --- a/libavcodec/ac3dsp.c
> +++ b/libavcodec/ac3dsp.c
> @@ -125,7 +125,7 @@ static void ac3_bit_alloc_calc_bap_c(int16_t *mask, 
> int16_t *psd,
>              int address = av_clip((psd[bin] - m) >> 5, 0, 63);
>              bap[bin] = bap_tab[address];
>          }
> -    } while (end > ff_ac3_band_start_tab[band++]);
> +    } while (end > ff_ac3_band_start_tab[++band]);
>  }
>  
>  static void ac3_update_bap_counts_c(uint16_t mant_cnt[16], uint8_t *bap,


looks correct.

Thanks,
Justin

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

Reply via email to