From c8b8270b71d67c32184206080fac01590f67614f Mon Sep 17 00:00:00 2001 From: Marten Richter Date: Fri, 26 Apr 2013 08:07:20 +0200 Subject: [PATCH] Fix mpeg audio header sanity check --- audioomx.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audioomx.cc b/audioomx.cc index c8e18dd..41ef1b9 100644 --- a/audioomx.cc +++ b/audioomx.cc @@ -1581,7 +1581,7 @@ unsigned int AudioOMX::AdvanceMpAudioSync(const UCHAR *data,unsigned int size,un int lsf=0; int mpeg2=0; int layer=4-((data[test+1]&0x06)>>1); - if (layer==0) {test++;continue;} //sanity check + if (layer==4) {test++;continue;} //sanity check int bitrate_index=(data[test+2]&0xf0)>>4; if (bitrate_index==0x0f || bitrate_index==0x0) {test++;continue;} //sanity check -- 2.39.5