Fix a bug preventing FilePlayer from playing encoded wav files
A bug in ACM2 prevented decoding and playout of wav files where the audio data was encoded (i.e., not just linear PCM 16 bit data). This CL fixes the issue, and adds a unit test for the FilePlayer. BUG=3386 R=henrike@webrtc.org, tina.legrand@webrtc.org, turaj@webrtc.org Review URL: https://webrtc-codereview.appspot.com/21499005 git-svn-id: http://webrtc.googlecode.com/svn/trunk@6248 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@@ -1835,6 +1835,7 @@ int AudioCodingModuleImpl::IncomingPayload(const uint8_t* incoming_payload,
|
||||
aux_rtp_header_->type.Audio.channel = 1;
|
||||
}
|
||||
|
||||
aux_rtp_header_->header.timestamp = timestamp;
|
||||
IncomingPacket(incoming_payload, payload_length, *aux_rtp_header_);
|
||||
// Get ready for the next payload.
|
||||
aux_rtp_header_->header.sequenceNumber++;
|
||||
|
||||
Reference in New Issue
Block a user