[FFmpeg-devel] [PATCH 06/10] aacdec_fixed: Make exp2tab static const
Ganesh Ajjanagadde
gajjanag at mit.edu
Sat Aug 22 04:05:06 CEST 2015
On Fri, Aug 21, 2015 at 9:21 PM, Timothy Gu <timothygu99 at gmail.com> wrote:
> ---
> libavcodec/aacdec_fixed.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavcodec/aacdec_fixed.c b/libavcodec/aacdec_fixed.c
> index 2a3dbf6..875ef58 100644
> --- a/libavcodec/aacdec_fixed.c
> +++ b/libavcodec/aacdec_fixed.c
> @@ -101,7 +101,7 @@ static av_always_inline void reset_predict_state(PredictorState *ps)
> ps->var1.exp = 1;
> }
>
> -int exp2tab[4] = { Q31(1.0000000000/2), Q31(1.1892071150/2), Q31(1.4142135624/2), Q31(1.6817928305/2) }; // 2^0, 2^0.25, 2^0.5, 2^0.75
> +static const int exp2tab[4] = { Q31(1.0000000000/2), Q31(1.1892071150/2), Q31(1.4142135624/2), Q31(1.6817928305/2) }; // 2^0, 2^0.25, 2^0.5, 2^0.75
>
> static inline int *DEC_SPAIR(int *dst, unsigned idx)
> {
> --
> 1.9.1
Also relatively recent, anyway LGTM.
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
More information about the ffmpeg-devel
mailing list