VirtualBox

Changeset 65205 in vbox for trunk/src


Ignore:
Timestamp:
Jan 9, 2017 1:20:36 PM (8 years ago)
Author:
vboxsync
Message:

DrvAudioVideoRec.cpp: pvDst[_4K] should be abDst[_4K].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/DrvAudioVideoRec.cpp

    r65197 r65205  
    4141
    4242#include <opus.h>
     43
    4344
    4445/*********************************************************************************************************************************
     
    291292    uint32_t cReadTotal = 0;
    292293
    293     uint8_t pvDst[_4K];
    294     opus_int32 cbDst = _4K;
     294    uint8_t abDst[_4K];
     295    opus_int32 cbDst = (opus_int32)sizeof(abDst);
    295296
    296297    PPDMAUDIOSAMPLE pSamples;
     
    303304        cReadTotal = cRead;
    304305
    305         opus_int32 orc = opus_encode(pStreamOut->Codec.Opus.pEnc, (opus_int16 *)pSamples, cRead, pvDst, cbDst);
     306        opus_int32 orc = opus_encode(pStreamOut->Codec.Opus.pEnc, (opus_int16 *)pSamples, cRead, abDst, cbDst);
    306307        if (orc != OPUS_OK)
    307308            LogFunc(("Encoding (1) failed: %s\n", opus_strerror(orc)));
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