-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AudioEncoderCng: Handle case where speech encoder is reset
Previously, AudioEncoderCng required the speech encoder to not change its mind regarding the number of 10 ms frames in the next packet between calls to AudioEncoderCng::EncodeInternal()---specifically, it could handle an upward but not a downward adjustment. With this patch, it can handle a downward adjustment too, by simply saving the overshoot data for the next call to EncodeInternal(). It will still not handle the case where the encoder's reported number of 10 ms frames in the next packet is inconsistent with the behavior of its Encode() function when called with no intervening changes to the encoder. R=henrik.lundin@webrtc.org Review URL: https://webrtc-codereview.appspot.com/53469005 Cr-Commit-Position: refs/heads/master@{#9261}
- Loading branch information
Henrik Lundin
committed
May 22, 2015
1 parent
f761d10
commit 367c868
Showing
3 changed files
with
55 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters