summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/include/XINGSeeker.h
diff options
context:
space:
mode:
authorMarco Nelissen <marcone@google.com>2012-03-14 16:40:11 -0700
committerMarco Nelissen <marcone@google.com>2012-03-14 16:42:09 -0700
commit5102400104ce1f0a6de7bf913381a91e4f18a22a (patch)
tree86f010b63e2b92e398e766387191175257777d69 /media/libstagefright/include/XINGSeeker.h
parent8e5b72c39cf0e4d4bec6f843bb54f6409b073c64 (diff)
downloadframeworks_av-5102400104ce1f0a6de7bf913381a91e4f18a22a.zip
frameworks_av-5102400104ce1f0a6de7bf913381a91e4f18a22a.tar.gz
frameworks_av-5102400104ce1f0a6de7bf913381a91e4f18a22a.tar.bz2
Fix Xing seeking when TOC[0] == 0
A file purchased from the Amazon mp3 store had two 0 entries at the start of the TOC (presumably because there was a lot of silence at the beginning, which compresses well), which made TOC based seeking think the TOC was not valid. b/6170518 Change-Id: Ie7135b4af06ebb925f63a374be780cf3a9404347
Diffstat (limited to 'media/libstagefright/include/XINGSeeker.h')
-rw-r--r--media/libstagefright/include/XINGSeeker.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/media/libstagefright/include/XINGSeeker.h b/media/libstagefright/include/XINGSeeker.h
index ec5bd9b..8510979 100644
--- a/media/libstagefright/include/XINGSeeker.h
+++ b/media/libstagefright/include/XINGSeeker.h
@@ -37,7 +37,8 @@ private:
int32_t mSizeBytes;
// TOC entries in XING header. Skip the first one since it's always 0.
- unsigned char mTableOfContents[99];
+ unsigned char mTOC[99];
+ bool mTOCValid;
XINGSeeker();