Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(512)

Issue 2831333002: Allow a received audio codec's payload type to change. (Closed)

Created:
3 years, 8 months ago by Taylor Brandstetter
Modified:
3 years, 8 months ago
Reviewers:
the sun, kwiberg-webrtc
CC:
webrtc-reviews_webrtc.org, the sun, tterriberry_mozilla.com
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Allow a received audio codec's payload type to change. This will create another decoder instance, which isn't ideal, but that's better than the current behavior where things don't work at all. We still need to fix the root cause of the linked bug, which is that we don't remember previous payload type mappings when generating an offer. This CL also adds a check for what is a real error: when a payload type that was mapped to one codec is changed to map to a different codec. And lastly, this CL removes a DCHECK for an assumption that was not valid: that subsequently applied codec lists will always be supersets of previous lists. BUG=webrtc:5847 Review-Url: https://codereview.webrtc.org/2831333002 Cr-Commit-Position: refs/heads/master@{#17897} Committed: https://chromium.googlesource.com/external/webrtc/+/cb3836773c962c3544bb707c8376e14e64d52f70

Patch Set 1 #

Total comments: 10

Patch Set 2 : Updating a test. #

Total comments: 10

Patch Set 3 : Simplifying code, adding comments. #

Total comments: 8

Patch Set 4 : Changing log message and comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -38 lines) Patch
M webrtc/api/audio_codecs/audio_format.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M webrtc/api/audio_codecs/audio_format.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M webrtc/media/engine/webrtcvoiceengine.cc View 1 2 3 2 chunks +33 lines, -36 lines 0 comments Download
M webrtc/media/engine/webrtcvoiceengine_unittest.cc View 1 2 chunks +15 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (6 generated)
Taylor Brandstetter
PTAL
3 years, 8 months ago (2017-04-21 12:35:31 UTC) #2
kwiberg-webrtc
https://codereview.webrtc.org/2831333002/diff/1/webrtc/api/audio_codecs/audio_format.h File webrtc/api/audio_codecs/audio_format.h (right): https://codereview.webrtc.org/2831333002/diff/1/webrtc/api/audio_codecs/audio_format.h#newcode47 webrtc/api/audio_codecs/audio_format.h:47: bool Matches(const SdpAudioFormat& o) const; Is that a good ...
3 years, 8 months ago (2017-04-21 12:49:00 UTC) #4
Taylor Brandstetter
https://codereview.webrtc.org/2831333002/diff/1/webrtc/api/audio_codecs/audio_format.h File webrtc/api/audio_codecs/audio_format.h (right): https://codereview.webrtc.org/2831333002/diff/1/webrtc/api/audio_codecs/audio_format.h#newcode47 webrtc/api/audio_codecs/audio_format.h:47: bool Matches(const SdpAudioFormat& o) const; On 2017/04/21 12:49:00, kwiberg-webrtc ...
3 years, 8 months ago (2017-04-21 13:02:06 UTC) #5
kwiberg-webrtc
Regardless of whether the individual changes are a good idea or not, this CL does ...
3 years, 8 months ago (2017-04-21 13:18:58 UTC) #6
Taylor Brandstetter
On 2017/04/21 13:18:58, kwiberg-webrtc wrote: > Regardless of whether the individual changes are a good ...
3 years, 8 months ago (2017-04-21 14:20:23 UTC) #7
kwiberg-webrtc
https://codereview.webrtc.org/2831333002/diff/20001/webrtc/media/engine/webrtcvoiceengine.cc File webrtc/media/engine/webrtcvoiceengine.cc (right): https://codereview.webrtc.org/2831333002/diff/20001/webrtc/media/engine/webrtcvoiceengine.cc#newcode1853 webrtc/media/engine/webrtcvoiceengine.cc:1853: new_codecs.push_back(codec); This warning will trigger if you try to ...
3 years, 8 months ago (2017-04-24 08:39:34 UTC) #8
Taylor Brandstetter
https://codereview.webrtc.org/2831333002/diff/20001/webrtc/media/engine/webrtcvoiceengine.cc File webrtc/media/engine/webrtcvoiceengine.cc (right): https://codereview.webrtc.org/2831333002/diff/20001/webrtc/media/engine/webrtcvoiceengine.cc#newcode1853 webrtc/media/engine/webrtcvoiceengine.cc:1853: new_codecs.push_back(codec); On 2017/04/24 08:39:34, kwiberg-webrtc wrote: > This warning ...
3 years, 8 months ago (2017-04-24 22:44:54 UTC) #9
kwiberg-webrtc
lgtm Consider re-wording the log statement, but you don't have to. https://codereview.webrtc.org/2831333002/diff/20001/webrtc/media/engine/webrtcvoiceengine.cc File webrtc/media/engine/webrtcvoiceengine.cc (right): ...
3 years, 8 months ago (2017-04-25 09:06:04 UTC) #10
the sun
lgtm https://codereview.webrtc.org/2831333002/diff/40001/webrtc/api/audio_codecs/audio_format.h File webrtc/api/audio_codecs/audio_format.h (right): https://codereview.webrtc.org/2831333002/diff/40001/webrtc/api/audio_codecs/audio_format.h#newcode44 webrtc/api/audio_codecs/audio_format.h:44: // Returns true if this format is compatible ...
3 years, 8 months ago (2017-04-26 07:44:10 UTC) #11
Taylor Brandstetter
https://codereview.webrtc.org/2831333002/diff/20001/webrtc/media/engine/webrtcvoiceengine.cc File webrtc/media/engine/webrtcvoiceengine.cc (right): https://codereview.webrtc.org/2831333002/diff/20001/webrtc/media/engine/webrtcvoiceengine.cc#newcode1853 webrtc/media/engine/webrtcvoiceengine.cc:1853: new_codecs.push_back(codec); On 2017/04/25 09:06:04, kwiberg-webrtc wrote: > On 2017/04/24 ...
3 years, 8 months ago (2017-04-26 23:04:40 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2831333002/60001
3 years, 8 months ago (2017-04-26 23:04:51 UTC) #15
commit-bot: I haz the power
3 years, 8 months ago (2017-04-26 23:28:47 UTC) #18
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/external/webrtc/+/cb3836773c962c3544bb707c8...

Powered by Google App Engine
This is Rietveld 408576698