Revision: 34685
http://sourceforge.net/p/opalvoip/code/34685
Author: rjongbloed
Date: 2016-03-15 10:32:05 +0000 (Tue, 15 Mar 2016)
Log Message:
-----------
Fixed spurious errors in log when starting Opus decoding.
Modified Paths:
--------------
opal/trunk/plugins/audio/Opus/OpusCodec.cpp
Modified: opal/trunk/plugins/audio/Opus/OpusCodec.cpp
===================================================================
--- opal/trunk/plugins/audio/Opus/OpusCodec.cpp 2016-03-14 10:36:12 UTC (rev 34684)
+++ opal/trunk/plugins/audio/Opus/OpusCodec.cpp 2016-03-15 10:32:05 UTC (rev 34685)
@@ -308,7 +308,7 @@
for (int frame = 0; frame < frames; ++frame) {
if (frame_sizes[frame] > 0) {
for (int chan = 0; chan < channels; chan++) {
- // Highest "subFrames" bits are VAD, next bit is LDDR flag, repeated for each channel
+ // Highest "subFrames" bits are VAD, next bit is LBRR flag, repeated for each channel
if (frame_data[frame][0] & (0x80 >> ((subFrames+1)*chan + subFrames))) {
PTRACE(6, MY_CODEC_LOG, "FEC packet detected");
++m_countFEC;
@@ -499,6 +499,11 @@
}
if (m_previousFrame.empty()) {
+ // Do not start decoding until we get the first
+ if (packet == NULL) {
+ toLen = 0;
+ return true;
+ }
m_previousFrame.resize(samples*m_channels);
toLen = 0;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|