Showing the changes to plugins/opusCodec/src/OpusEncoder.cpp (1 of 2 files). Show all
Unified · Split
| @@ -72,7 +72,7 @@ void AthenaOpusEncoder::encode(const QByteArray& decodedBuffer, QByteArray& enco · 71 unmodified lines | |||
| 72 | int bytes = opus_encode(_encoder, reinterpret_cast<const opus_int16*>(decodedBuffer.constData()), frame_size, reinterpret_cast<unsigned char*>(encodedBuffer.data()), encodedBuffer.size() ); | 72 | int bytes = opus_encode(_encoder, reinterpret_cast<const opus_int16*>(decodedBuffer.constData()), frame_size, reinterpret_cast<unsigned char*>(encodedBuffer.data()), encodedBuffer.size() ); |
| 73 | 73 | ||
| 74 | if ( bytes >= 0 ) { | 74 | if ( bytes >= 0 ) { |
| 75 | qCDebug(encoder) << "Encoded " << decodedBuffer.length() << " bytes into " << bytes << " opus bytes"; | 75 | //qCDebug(encoder) << "Encoded " << decodedBuffer.length() << " bytes into " << bytes << " opus bytes"; |
| 76 | encodedBuffer.resize(bytes); | 76 | encodedBuffer.resize(bytes); |
| 77 | } else { | 77 | } else { |
| 78 | encodedBuffer.resize(0); | 78 | encodedBuffer.resize(0); |