[SCM] libav/experimental: Make AMR-NB block size const and 8 bits.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:15:59 UTC 2013


The following commit has been merged in the experimental branch:
commit 79aeec0839123da123683e9e4bc199b7a4a2bebb
Author: Benoit Fouet <benoit.fouet at free.fr>
Date:   Fri Feb 29 08:01:01 2008 +0000

    Make AMR-NB block size const and 8 bits.
    
    Originally committed as revision 12278 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/libamr.c b/libavcodec/libamr.c
index 241fc99..5a51450 100644
--- a/libavcodec/libamr.c
+++ b/libavcodec/libamr.c
@@ -444,7 +444,7 @@ static int amr_nb_decode_frame(AVCodecContext * avctx,
 {
     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 };
     enum Mode dec_mode;
     int packet_size;
 

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list