From 9a9e01f84163f04091907c81c1b07cf919404773 Mon Sep 17 00:00:00 2001 From: Lianlian Zhu Date: Thu, 20 Apr 2017 06:16:16 +0000 Subject: PD#142975: audio:fixed pasered dts framelength wrong issue Change-Id: I802c6d0d0bcaa3aa4b0d8076553e1d68d56d2db4 --- diff --git a/amadec/omx_audio/DTSHD_mediasource.cpp b/amadec/omx_audio/DTSHD_mediasource.cpp index 84cb1b5..c632c14 100644 --- a/amadec/omx_audio/DTSHD_mediasource.cpp +++ b/amadec/omx_audio/DTSHD_mediasource.cpp @@ -66,6 +66,11 @@ static int AML_DCA_Estimate_Frame_size( unsigned char *buf,int size,int *syncpos { frame_size=i32Index-first_sync_pos; ALOGI("FrameSize detect: %d/bytes",frame_size); + if (frame_size < 95){ + first_sync_pos = frame_size; + continue; + } + break; } } -- cgit