diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 8405e25c4007d10930413271bc7b3285ef152978..fd9652fcdb348ae0d31dbc1edc35aaad4af68036 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -1004,7 +1004,7 @@ static void matroska_execute_seekhead(MatroskaDemuxContext *matroska)
 
 static int matroska_aac_profile(char *codec_id)
 {
-    static const char *aac_profiles[] = { "MAIN", "LC", "SSR" };
+    static const char * const aac_profiles[] = { "MAIN", "LC", "SSR" };
     int profile;
 
     for (profile=0; profile<ARRAY_SIZE(aac_profiles); profile++)