From 5102400104ce1f0a6de7bf913381a91e4f18a22a Mon Sep 17 00:00:00 2001 From: Marco Nelissen Date: Wed, 14 Mar 2012 16:40:11 -0700 Subject: 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 --- media/libstagefright/include/XINGSeeker.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'media/libstagefright/include') 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(); -- cgit v1.1