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
32
diff --git a/apps/metadata.c b/apps/metadata.c
index 8b1101e..2cb8f4f 100644
--- a/apps/metadata.c
+++ b/apps/metadata.c
@@ -379,6 +379,9 @@ unsigned int probe_file_format(const char *filename)
         /* search extension list for type */
         const char *ext = audio_formats[i].ext_list;
 
+         /* handle which HWCODEC doesn't have anything for MP1 */
+        if (!ext) continue;
+
         do
         {
             if (strcasecmp(suffix, ext) == 0)
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 */