NetEq: Remove special case for Merge without Expand
This was an ill tested special case which turned out to be more problem than benefit. The special case was only triggered when the decoder frame size was smaller than 10 ms, which is more or less unsupported by NetEq. Also fixed a bug in a test, a bug which was exposed by the code change. BUG=chromium:654983 Review-Url: https://codereview.webrtc.org/2412883002 Cr-Commit-Position: refs/heads/master@{#14627}
This commit is contained in:
committed by
Commit bot
parent
722b0dc108
commit
c9ec8758db
@ -609,7 +609,7 @@ TEST_F(NetEqImplTest, FirstPacketUnknown) {
|
||||
const int kSampleRateHz = 8000;
|
||||
const size_t kPayloadLengthSamples =
|
||||
static_cast<size_t>(10 * kSampleRateHz / 1000); // 10 ms.
|
||||
const size_t kPayloadLengthBytes = kPayloadLengthSamples;
|
||||
const size_t kPayloadLengthBytes = kPayloadLengthSamples * 2;
|
||||
uint8_t payload[kPayloadLengthBytes] = {0};
|
||||
WebRtcRTPHeader rtp_header;
|
||||
rtp_header.header.payloadType = kPayloadType;
|
||||
|
||||
Reference in New Issue
Block a user