changeset 5160:eb33b7205b3c libavformat

ff_id3v1_genre_str table should be const.
author reimar
date Sun, 06 Sep 2009 08:39:41 +0000
parents e7eb86fbe4c1
children 17ad184d14be
files id3v1.c id3v1.h
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/id3v1.c	Sun Sep 06 08:36:25 2009 +0000
+++ b/id3v1.c	Sun Sep 06 08:39:41 2009 +0000
@@ -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",
--- a/id3v1.h	Sun Sep 06 08:36:25 2009 +0000
+++ b/id3v1.h	Sun Sep 06 08:39:41 2009 +0000
@@ -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