summaryrefslogtreecommitdiff
path: root/apps/metadata/metadata_common.c
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2011-02-15 20:00:28 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2011-02-15 20:00:28 +0000
commit237ca504e12c06a5cfa7cd0fb9d9c672dc588f1c (patch)
treeb6454cdfaa01c749e986386f7b3bc9fdc3a5f6c8 /apps/metadata/metadata_common.c
parent258626f4550be2e586c9e5acf20cb71ee001a8e4 (diff)
downloadrockbox-237ca504e12c06a5cfa7cd0fb9d9c672dc588f1c.tar.gz
rockbox-237ca504e12c06a5cfa7cd0fb9d9c672dc588f1c.zip
All AAC-HE files will double the frame sample count, not only AAC-HE files with SBR upsampling. This change fixes issues with some m4a files reported in the forums.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29310 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/metadata/metadata_common.c')
-rw-r--r--apps/metadata/metadata_common.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/metadata/metadata_common.c b/apps/metadata/metadata_common.c
index e1ef9a0d62..4f001775f3 100644
--- a/apps/metadata/metadata_common.c
+++ b/apps/metadata/metadata_common.c
@@ -337,7 +337,10 @@ long parse_tag(const char* name, char* value, struct mp3entry* id3,
337 p = NULL; 337 p = NULL;
338 } 338 }
339 339
340 if (p) 340 /* Do not overwrite already available metadata. Especially when reading
341 * tags with e.g. multiple genres / artists. This way only the first
342 * of multiple entries is used, all following are dropped. */
343 if (p!=NULL && *p==NULL)
341 { 344 {
342 len = strlen(value); 345 len = strlen(value);
343 len = MIN(len, buf_remaining - 1); 346 len = MIN(len, buf_remaining - 1);