libeplayer3/pcm: minor clean-up, no code change

Origin commit data
------------------
Branch: master
Commit: 411037021c
Author: martii <m4rtii@gmx.de>
Date: 2013-07-28 (Sun, 28 Jul 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
martii
2013-07-28 10:06:21 +02:00
parent dad37ef35e
commit ec4e1eacc0

View File

@@ -152,7 +152,7 @@ static int prepareClipPlay(int uNoOfChannels, int uSampleRate, int uBitsPerSampl
SubFrameLen *= (uBitsPerSample / 8); SubFrameLen *= (uBitsPerSample / 8);
//rewrite PES size to have as many complete subframes per PES as we can //rewrite PES size to have as many complete subframes per PES as we can
// FIXME: PES header size was hardcoded to 18 in previous code. It's 14 at the moment. // FIXME: PES header size was hardcoded to 18 in previous code. Actual size returned by InsertPesHeader is 14.
SubFramesPerPES = ((2048 - 18) - sizeof(lpcm_prv))/SubFrameLen; SubFramesPerPES = ((2048 - 18) - sizeof(lpcm_prv))/SubFrameLen;
SubFrameLen *= SubFramesPerPES; SubFrameLen *= SubFramesPerPES;
@@ -160,7 +160,8 @@ static int prepareClipPlay(int uNoOfChannels, int uSampleRate, int uBitsPerSampl
lpcm_prv[10] = uNoOfChannels - 1; lpcm_prv[10] = uNoOfChannels - 1;
switch(uBitsPerSample) { switch(uBitsPerSample) {
case 24: lpcm_prv[7] |= 0x20; case 24:
lpcm_prv[7] |= 0x20;
case 16: case 16:
break; break;
default: default: