summaryrefslogtreecommitdiffstats
path: root/apps/metadata.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/metadata.c')
-rw-r--r--apps/metadata.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/metadata.c b/apps/metadata.c
index ce3a4ec22a..36e97268ea 100644
--- a/apps/metadata.c
+++ b/apps/metadata.c
@@ -165,6 +165,9 @@ const struct afmt_entry audio_formats[AFMT_NUM_CODECS] =
/* Atrac3 in Sony OMA Container */
[AFMT_OMA_ATRAC3] =
AFMT_ENTRY("ATRAC3", "atrac3_oma", NULL, "oma\0aa3\0" ),
+ /* SMAF (Synthetic music Mobile Application Format) */
+ [AFMT_SMAF] =
+ AFMT_ENTRY("SMAF", "smaf", NULL, "mmf\0" ),
#endif
};
@@ -447,6 +450,14 @@ bool get_metadata(struct mp3entry* id3, int fd, const char* trackname)
return false;
}
break;
+
+ case AFMT_SMAF:
+ if (!get_smaf_metadata(fd, id3))
+ {
+ DEBUGF("get_smaf_metadata error\n");
+ return false;
+ }
+ break;
#endif /* CONFIG_CODEC == SWCODEC */