[FFmpeg-soc] [soc]: r4630 - spdif/spdif.c

bwolowiec subversion at mplayerhq.hu
Mon Jul 6 19:59:56 CEST 2009


Author: bwolowiec
Date: Mon Jul  6 19:59:56 2009
New Revision: 4630

Log:
Make arrays constant

Modified:
   spdif/spdif.c

Modified: spdif/spdif.c
==============================================================================
--- spdif/spdif.c	Mon Jul  6 19:54:59 2009	(r4629)
+++ spdif/spdif.c	Mon Jul  6 19:59:56 2009	(r4630)
@@ -98,13 +98,13 @@ static int spdif_header_dts(AVFormatCont
     return 0;
 }
 
-static uint8_t mpeg_data_type[2][3] = {
+static const uint8_t mpeg_data_type[2][3] = {
     //     LAYER1                      LAYER2                  LAYER3
     { IEC958_MPEG2_LAYER1_LSF, IEC958_MPEG2_LAYER2_LSF, IEC958_MPEG2_LAYER3_LSF },  //MPEG2 LSF
     { IEC958_MPEG1_LAYER1,     IEC958_MPEG1_LAYER23,    IEC958_MPEG1_LAYER23 },     //MPEG1
 };
 
-static uint16_t mpeg_pkt_offset[2][3] = {
+static const uint16_t mpeg_pkt_offset[2][3] = {
     //LAYER1  LAYER2  LAYER3
     { 768,    2304,   1152 }, // MPEG2 LSF
     { 384,    1152,   1152 }, // MPEG1


More information about the FFmpeg-soc mailing list