summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-07-07 21:16:40 +1000
committerjacqueline <me@jacqueline.id.au>2023-07-07 21:16:40 +1000
commit031cd99ea1b16de23a62f616684189fe46c0455f (patch)
treed23921d51af8b8590e26807664a588c4779f4daa /src
parent804aa38bff520d0954ae2b5d3587522820138dd7 (diff)
downloadtangara-fw-031cd99ea1b16de23a62f616684189fe46c0455f.tar.gz
add note on toc field
Diffstat (limited to 'src')
-rw-r--r--src/codecs/mad.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/codecs/mad.cpp b/src/codecs/mad.cpp
index bb64ed15..8b4e2561 100644
--- a/src/codecs/mad.cpp
+++ b/src/codecs/mad.cpp
@@ -270,6 +270,8 @@ auto MadMp3Decoder::GetVbrLength(const mad_header& header)
unsigned char const* frames_count_raw;
uint32_t frames_count = 0;
+ // TODO(jacqueline): we should also look up any toc fields here, to make
+ // seeking faster.
if (std::memcmp(stream_.this_frame + xing_offset, "Xing", 4) == 0 ||
std::memcmp(stream_.this_frame + xing_offset, "Info", 4) == 0) {
/* Xing header to get the count of frames for VBR */