mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
libeplayer3/pcm: minor clean-up, no code change
This commit is contained in:
@@ -152,7 +152,7 @@ static int prepareClipPlay(int uNoOfChannels, int uSampleRate, int uBitsPerSampl
|
||||
SubFrameLen *= (uBitsPerSample / 8);
|
||||
|
||||
//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;
|
||||
SubFrameLen *= SubFramesPerPES;
|
||||
|
||||
@@ -160,7 +160,8 @@ static int prepareClipPlay(int uNoOfChannels, int uSampleRate, int uBitsPerSampl
|
||||
lpcm_prv[10] = uNoOfChannels - 1;
|
||||
|
||||
switch(uBitsPerSample) {
|
||||
case 24: lpcm_prv[7] |= 0x20;
|
||||
case 24:
|
||||
lpcm_prv[7] |= 0x20;
|
||||
case 16:
|
||||
break;
|
||||
default:
|
||||
|
Reference in New Issue
Block a user