- Timestamp:
- Jan 9, 2017 1:20:36 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/DrvAudioVideoRec.cpp
r65197 r65205 41 41 42 42 #include <opus.h> 43 43 44 44 45 /********************************************************************************************************************************* … … 291 292 uint32_t cReadTotal = 0; 292 293 293 uint8_t pvDst[_4K];294 opus_int32 cbDst = _4K;294 uint8_t abDst[_4K]; 295 opus_int32 cbDst = (opus_int32)sizeof(abDst); 295 296 296 297 PPDMAUDIOSAMPLE pSamples; … … 303 304 cReadTotal = cRead; 304 305 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); 306 307 if (orc != OPUS_OK) 307 308 LogFunc(("Encoding (1) failed: %s\n", opus_strerror(orc)));
Note:
See TracChangeset
for help on using the changeset viewer.