diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-07-08 21:25:15 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-07-08 21:25:15 +0000 |
commit | c7430a7691f9bb79bdecd956b6d2c9b6f9877af9 (patch) | |
tree | a3ccba3161ed8fe5a3c4ef018fecf17286161042 | |
parent | c4b31b0ddfb38921fa8c7eacfdf78bcce25ca8b8 (diff) | |
download | rockbox-c7430a7691f9bb79bdecd956b6d2c9b6f9877af9.tar.gz rockbox-c7430a7691f9bb79bdecd956b6d2c9b6f9877af9.zip |
for oggs, we do a lame crc from index 0 to make the rundb work better (but this
_really_ should crc only the audio data and not the initial meta and tag data)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7078 a1c6a512-1295-4272-9138-f99709370657
-rwxr-xr-x | tools/songdb.pl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/songdb.pl b/tools/songdb.pl index 589267b632..f4cea8996f 100755 --- a/tools/songdb.pl +++ b/tools/songdb.pl | |||
@@ -234,6 +234,9 @@ sub singlefile { | |||
234 | 234 | ||
235 | if($file =~ /\.ogg$/i) { | 235 | if($file =~ /\.ogg$/i) { |
236 | $hash = get_oggtag($file); | 236 | $hash = get_oggtag($file); |
237 | |||
238 | # CRC from 0 until we figure out exactly where the audio data starts! | ||
239 | $hash->{FILECRC} = crc32($file, 0); | ||
237 | } | 240 | } |
238 | else { | 241 | else { |
239 | $hash = get_mp3tag($file); | 242 | $hash = get_mp3tag($file); |