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

This commit is contained in:
martii
2013-07-28 10:06:21 +02:00
parent f8a789f7a6
commit 411037021c

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: