summaryrefslogtreecommitdiff
path: root/lib/rbcodec/metadata/metadata.h
diff options
context:
space:
mode:
authorroman.artiukhin <bahusdrive@gmail.com>2023-09-05 00:31:56 +0300
committerSolomon Peachy <pizza@shaftnet.org>2023-09-15 09:08:02 -0400
commitd2f7777f7a80267af38b29f1301c70fcf04df580 (patch)
treecba9ae2aaee0ff1e71b812b35d4d0fa3407b85c6 /lib/rbcodec/metadata/metadata.h
parentdf51d49b22d0652a355e48cd33934a14fb0acc07 (diff)
downloadrockbox-d2f7777f7a80267af38b29f1301c70fcf04df580.tar.gz
rockbox-d2f7777f7a80267af38b29f1301c70fcf04df580.zip
Codecs: mp4: metadata: Fix time length in very large files
Fix 40 hours long book reported as 14 hours due to samples overflow Change-Id: I5988d4492b1f51081fff921180de6fe384ab5f4f
Diffstat (limited to 'lib/rbcodec/metadata/metadata.h')
-rw-r--r--lib/rbcodec/metadata/metadata.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbcodec/metadata/metadata.h b/lib/rbcodec/metadata/metadata.h
index 1a205a08eb..cab387e36c 100644
--- a/lib/rbcodec/metadata/metadata.h
+++ b/lib/rbcodec/metadata/metadata.h
@@ -259,7 +259,7 @@ struct mp3entry {
259 int tail_trim; /* Number of samples to remove from the end */ 259 int tail_trim; /* Number of samples to remove from the end */
260 260
261 /* Added for Vorbis, used by mp4 parser as well. */ 261 /* Added for Vorbis, used by mp4 parser as well. */
262 unsigned long samples; /* number of samples in track */ 262 uint64_t samples; /* number of samples in track */
263 263
264 /* MP3 stream specific info */ 264 /* MP3 stream specific info */
265 unsigned long frame_count; /* number of frames in the file (if VBR) */ 265 unsigned long frame_count; /* number of frames in the file (if VBR) */