[FFmpeg-cvslog] r12278 - trunk/libavcodec/libamr.c

Rich Felker dalias
Fri Feb 29 20:01:24 CET 2008


On Fri, Feb 29, 2008 at 09:01:01AM +0100, benoit wrote:
> Author: benoit
> Date: Fri Feb 29 09:01:01 2008
> New Revision: 12278
> 
> Log:
> Make AMR-NB block size const and 8 bits.
> 
> 
> Modified:
>    trunk/libavcodec/libamr.c
> 
> Modified: trunk/libavcodec/libamr.c
> ==============================================================================
> --- trunk/libavcodec/libamr.c	(original)
> +++ trunk/libavcodec/libamr.c	Fri Feb 29 09:01:01 2008
> @@ -444,7 +444,7 @@ static int amr_nb_decode_frame(AVCodecCo
>  {
>      AMRContext *s = avctx->priv_data;
>      uint8_t*amrData=buf;
> -    static short block_size[16]={ 12, 13, 15, 17, 19, 20, 26, 31, 5, 0, 0, 0, 0, 0, 0, 0 };
> +    static const uint8_t block_size[16]={ 12, 13, 15, 17, 19, 20, 26, 31, 5, 0, 0, 0, 0, 0, 0, 0 };

The explicit zeros at the end are also unnecessary and make the line
>80 characters.

Rich




More information about the ffmpeg-cvslog mailing list