From 2ed2f4fcc45aab6f94766d951e97b3d7f79ad19a Mon Sep 17 00:00:00 2001 From: Marten Richter Date: Sun, 19 May 2013 11:06:44 +0200 Subject: [PATCH] Fix latm header parsing --- audioomx.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audioomx.cc b/audioomx.cc index 41ef1b9..fda3b17 100644 --- a/audioomx.cc +++ b/audioomx.cc @@ -1654,7 +1654,7 @@ unsigned int AudioOMX::AdvanceAacLatmAudioSync(const UCHAR *data,unsigned int si if (data[test] ==0x56 && (data[test+1]& 0xe0)==0xe0) { // now figure out the length of the frame unsigned int length= ((0x1f & data[test+1])<<8) | data[test+2]; - *framesize=length; + *framesize=length+3; return test; // probably FrameSync } test++; -- 2.39.2