From: Marten Richter Date: Sun, 19 May 2013 09:06:44 +0000 (+0200) Subject: Fix latm header parsing X-Git-Url: https://git.vomp.tv/gitweb/?a=commitdiff_plain;h=2ed2f4fcc45aab6f94766d951e97b3d7f79ad19a;p=vompclient-marten.git Fix latm header parsing --- 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++;