summaryrefslogtreecommitdiff
path: root/dxr3audiodecoder.c
diff options
context:
space:
mode:
Diffstat (limited to 'dxr3audiodecoder.c')
-rw-r--r--dxr3audiodecoder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dxr3audiodecoder.c b/dxr3audiodecoder.c
index 10b62a3..8de1ccc 100644
--- a/dxr3audiodecoder.c
+++ b/dxr3audiodecoder.c
@@ -287,7 +287,7 @@ void cDxr3AudioDecoder::DecodeAc3Dts(const uint8_t* pPes, const uint8_t* buf,
{
cDxr3PesFrame tempPes;
tempPes.ExtractNextFrame(pFrame->Data(), pFrame->Count());
- int pesHeaderLength = (int) (tempPes.GetEsStart() - tempPes.GetPesStart());
+ int pesHeaderLength = (int) (tempPes.GetPayload() - tempPes.GetPesStart());
uint8_t* pData = pFrame->Data() + pesHeaderLength + LPCM_HEADER_LENGTH;
for (int i = 0; i < pFrame->Count() - pesHeaderLength - LPCM_HEADER_LENGTH; i += 2)