ff_id3v1_genre_str table should be const.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sun, 6 Sep 2009 08:39:41 +0000 (08:39 +0000)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sun, 6 Sep 2009 08:39:41 +0000 (08:39 +0000)
Originally committed as revision 19781 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/id3v1.c
libavformat/id3v1.h

index 7281974..cf5cb95 100644 (file)
@@ -22,7 +22,7 @@
 #include "id3v1.h"
 #include "libavcodec/avcodec.h"
 
-const char *ff_id3v1_genre_str[ID3v1_GENRE_MAX + 1] = {
+const char * const ff_id3v1_genre_str[ID3v1_GENRE_MAX + 1] = {
       [0] = "Blues",
       [1] = "Classic Rock",
       [2] = "Country",
index b5dcedc..206cab7 100644 (file)
@@ -31,7 +31,7 @@
 /**
  * ID3v1 genres
  */
-extern const char *ff_id3v1_genre_str[ID3v1_GENRE_MAX + 1];
+extern const char * const ff_id3v1_genre_str[ID3v1_GENRE_MAX + 1];
 
 /**
  * Read an ID3v1 tag