VirtualBox

Changeset 89448 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jun 1, 2021 11:35:12 PM (4 years ago)
Author:
vboxsync
Message:

AudioMixBuffer/AudioMixBufInitPeekState: Fixed channel count assertions. bugref:9890

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/AudioMixBuffer.cpp

    r89440 r89448  
    11091109    pState->cbDstFrame     = PDMAudioPropsFrameSize(pProps);
    11101110    audioMixBufInitChannelMap(pState->aidxChannelMap, &pMixBuf->Props, pProps);
    1111     AssertReturn(cDstCh > 0 && cDstCh < PDMAUDIO_MAX_CHANNELS, VERR_OUT_OF_RANGE);
    1112     AssertReturn(cSrcCh > 0 && cSrcCh < PDMAUDIO_MAX_CHANNELS, VERR_OUT_OF_RANGE);
     1111    AssertReturn(cDstCh > 0 && cDstCh <= PDMAUDIO_MAX_CHANNELS, VERR_OUT_OF_RANGE);
     1112    AssertReturn(cSrcCh > 0 && cSrcCh <= PDMAUDIO_MAX_CHANNELS, VERR_OUT_OF_RANGE);
    11131113
    11141114    if (PDMAudioPropsIsSigned(pProps))
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette