mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 14:35:59 +00:00
[WINEMP3.ACM] Sync with Wine Staging 2.16. CORE-13762
ffebb91 winemp3.acm: Fix error in acmStreamSize(). svn path=/trunk/; revision=75943
This commit is contained in:
parent
3e1315cb4b
commit
9b95d548ca
2 changed files with 5 additions and 5 deletions
|
@ -953,11 +953,11 @@ static LRESULT MPEG3_StreamSize(PACMDRVSTREAMINSTANCE adsi, PACMDRVSTREAMSIZE ad
|
|||
adsi->pwfxDst->wFormatTag == WAVE_FORMAT_MPEG))
|
||||
{
|
||||
nblocks = adss->cbSrcLength / (adsi->pwfxSrc->nBlockAlign * 1152);
|
||||
if (nblocks == 0)
|
||||
return ACMERR_NOTPOSSIBLE;
|
||||
if (adss->cbSrcLength % (DWORD)(adsi->pwfxSrc->nBlockAlign * 1152))
|
||||
/* Round block count up. */
|
||||
nblocks++;
|
||||
if (nblocks == 0)
|
||||
return ACMERR_NOTPOSSIBLE;
|
||||
adss->cbDstLength = 3000 + nblocks * (DWORD)(adsi->pwfxDst->nAvgBytesPerSec * 1152 / adsi->pwfxDst->nSamplesPerSec + 0.5);
|
||||
}
|
||||
else if ((adsi->pwfxSrc->wFormatTag == WAVE_FORMAT_MPEGLAYER3 ||
|
||||
|
@ -965,11 +965,11 @@ static LRESULT MPEG3_StreamSize(PACMDRVSTREAMINSTANCE adsi, PACMDRVSTREAMSIZE ad
|
|||
adsi->pwfxDst->wFormatTag == WAVE_FORMAT_PCM)
|
||||
{
|
||||
nblocks = adss->cbSrcLength / (DWORD)(adsi->pwfxSrc->nAvgBytesPerSec * 1152 / adsi->pwfxSrc->nSamplesPerSec);
|
||||
if (nblocks == 0)
|
||||
return ACMERR_NOTPOSSIBLE;
|
||||
if (adss->cbSrcLength % (DWORD)(adsi->pwfxSrc->nAvgBytesPerSec * 1152 / adsi->pwfxSrc->nSamplesPerSec))
|
||||
/* Round block count up. */
|
||||
nblocks++;
|
||||
if (nblocks == 0)
|
||||
return ACMERR_NOTPOSSIBLE;
|
||||
adss->cbDstLength = nblocks * 1152 * adsi->pwfxDst->nBlockAlign;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -198,7 +198,7 @@ reactos/dll/win32/wbemdisp # Synced to WineStaging-2.16
|
|||
reactos/dll/win32/wbemprox # Synced to WineStaging-2.16
|
||||
reactos/dll/win32/windowscodecs # Synced to WineStaging-2.9
|
||||
reactos/dll/win32/windowscodecsext # Synced to WineStaging-2.9
|
||||
reactos/dll/win32/winemp3.acm # Synced to WineStaging-2.9
|
||||
reactos/dll/win32/winemp3.acm # Synced to WineStaging-2.16
|
||||
reactos/dll/win32/wing32 # Synced to WineStaging-2.9
|
||||
reactos/dll/win32/winhttp # Synced to WineStaging-2.9
|
||||
reactos/dll/win32/wininet # Synced to WineStaging-2.9
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue