From fdb04b61f91c45eed0edd28aa33d7085a5e6eb74 Mon Sep 17 00:00:00 2001 From: Gloria Wang Date: Wed, 3 Aug 2011 15:06:35 -0700 Subject: Check the syncword for each frame. Fix for bug 5117233. Change-Id: I714c9b671832c9606cabdfe6bb21697c08de2eff --- media/libstagefright/AACExtractor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'media/libstagefright/AACExtractor.cpp') diff --git a/media/libstagefright/AACExtractor.cpp b/media/libstagefright/AACExtractor.cpp index 4203b6e..a5a6b64 100644 --- a/media/libstagefright/AACExtractor.cpp +++ b/media/libstagefright/AACExtractor.cpp @@ -92,7 +92,7 @@ static size_t getFrameSize(const sp &source, off64_t offset) { size_t frameSize = 0; uint8_t syncword[2]; - if (source->readAt(0, &syncword, 2) != 2) { + if (source->readAt(offset, &syncword, 2) != 2) { return 0; } if ((syncword[0] != 0xff) || ((syncword[1] & 0xf6) != 0xf0)) { -- cgit v1.1