1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
diff --git a/apps/metadata.c b/apps/metadata.c
index 8b1101e..3f5f74f 100644
--- a/apps/metadata.c
+++ b/apps/metadata.c
@@ -61,7 +61,7 @@ bool write_metadata_log = false;
 const struct afmt_entry audio_formats[AFMT_NUM_CODECS] =
 {
     /* Unknown file format */
-    [AFMT_UNKNOWN] =
+    [0 ... AFMT_NUM_CODECS-1] =
         AFMT_ENTRY("???", NULL,    NULL,        NULL, NULL  ),
 
     /* MPEG Audio layer 2 */
diff --git a/apps/metadata.h b/apps/metadata.h
index 3c5efb7..e1f30c1 100644
--- a/apps/metadata.h
+++ b/apps/metadata.h
@@ -36,12 +36,11 @@ enum
     AFMT_UNKNOWN = 0,  /* Unknown file format */
 
     /* start formats */
-
+    AFMT_MPA_L1,       /* MPEG Audio layer 1 */
     AFMT_MPA_L2,       /* MPEG Audio layer 2 */
     AFMT_MPA_L3,       /* MPEG Audio layer 3 */
 
 #if CONFIG_CODEC == SWCODEC
-    AFMT_MPA_L1,       /* MPEG Audio layer 1 */
     AFMT_AIFF,         /* Audio Interchange File Format */
     AFMT_PCM_WAV,      /* Uncompressed PCM in a WAV file */
     AFMT_OGG_VORBIS,   /* Ogg Vorbis */