forked from len0rd/rockbox
Correct the metadata's VBR flag for MP4 files. ALAC is native VBR, AAC very unlikely is CBR. The VBR flag is used by several WPS.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29313 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
526bee6266
commit
2f3ab5fa22
1 changed files with 4 additions and 2 deletions
|
|
@ -782,6 +782,8 @@ bool get_mp4_metadata(int fd, struct mp3entry* id3)
|
||||||
|
|
||||||
id3->length = ((int64_t) id3->samples * 1000) / id3->frequency;
|
id3->length = ((int64_t) id3->samples * 1000) / id3->frequency;
|
||||||
|
|
||||||
|
id3->vbr = true; /* ALAC is native VBR, AAC very unlikely is CBR. */
|
||||||
|
|
||||||
if (id3->length <= 0)
|
if (id3->length <= 0)
|
||||||
{
|
{
|
||||||
logf("mp4 length invalid!");
|
logf("mp4 length invalid!");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue