comparison matroskadec.c @ 3762:beb15b4fd4c4 libavformat

matroskadec: make aac_profiles array const
author aurel
date Sun, 24 Aug 2008 13:12:41 +0000
parents 27537074f2a9
children 185fc71a641c
comparison
equal deleted inserted replaced
3761:3a874c41adaf 3762:beb15b4fd4c4
1002 matroska->level_up = level_up; 1002 matroska->level_up = level_up;
1003 } 1003 }
1004 1004
1005 static int matroska_aac_profile(char *codec_id) 1005 static int matroska_aac_profile(char *codec_id)
1006 { 1006 {
1007 static const char *aac_profiles[] = { "MAIN", "LC", "SSR" }; 1007 static const char * const aac_profiles[] = { "MAIN", "LC", "SSR" };
1008 int profile; 1008 int profile;
1009 1009
1010 for (profile=0; profile<ARRAY_SIZE(aac_profiles); profile++) 1010 for (profile=0; profile<ARRAY_SIZE(aac_profiles); profile++)
1011 if (strstr(codec_id, aac_profiles[profile])) 1011 if (strstr(codec_id, aac_profiles[profile]))
1012 break; 1012 break;