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

Issue 2383103002: RTPReceiverAudio: Removed frequency from CNGPayloadType and cleaned up (Closed)

Created:
4 years, 2 months ago by ossu
Modified:
4 years, 2 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, zhuangzesen_agora.io, danilchap, stefan-webrtc, mflodman
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

RTPReceiverAudio: Removed frequency from CNGPayloadType and cleaned up CheckPayloadChanged. Removed last_received_frequency_, cng_payload_type_, g722_payload_type_ and last_received_g722_ from RTPReceiverAudio and cleaned up most of the related, now dead code. Since g722_payload_type_ was never set, neither was last_received_g722_, which means the frequency change in CNGPayloadType was never done. Setting the frequency to the standard values also proved unnecessary, since they were already set before the call. Even if frequency would have been changed by RTPReceiverAudio, I was not able to find a place where that would actually have mattered. The ACM and NetEq, for example, which eventually gets these packages, don't care about that value. Also, GetPayloadTypeFrequency was never called, so keeping track of last_received_frequency_ proved unnecessary. cng_payload_type_ was stored to be able to check in CNGPayloadType if cng_payload_type_has_changed. This flag was also never read, so these all disappear. The main reason for starting this change was to root out any G722 specific code we have sprinkled around the code base (specifically dealing with the fact that for G722 clock rate != sample rate). In this case, once I started pulling at one end of the string, the whole thing came unraveled. BUG=webrtc:5805 Committed: https://crrev.com/425a6ccac3c6c485048685566b259c540280cc2a Cr-Commit-Position: refs/heads/master@{#14530}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Addressed nits. #

Patch Set 3 : Silly me! #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -110 lines) Patch
M webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.h View 1 2 3 chunks +3 lines, -14 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.cc View 1 6 chunks +10 lines, -87 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_receiver_strategy.h View 1 chunk +0 lines, -3 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_receiver_video.h View 1 chunk +0 lines, -2 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_receiver_video.cc View 1 chunk +0 lines, -4 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 19 (10 generated)
ossu
This CL simplifies (well, removes) some of the code in RTPReceiverAudio, to get rid of ...
4 years, 2 months ago (2016-10-03 11:45:10 UTC) #2
danilchap
lgtm, nice to see dead code removed! https://codereview.webrtc.org/2383103002/diff/1/webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.cc File webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.cc (right): https://codereview.webrtc.org/2383103002/diff/1/webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.cc#newcode174 webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.cc:174: void RTPReceiverAudio::CheckPayloadChanged(int8_t ...
4 years, 2 months ago (2016-10-03 14:29:38 UTC) #3
hlundin-webrtc
lgtm with comments. https://codereview.webrtc.org/2383103002/diff/1/webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.cc File webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.cc (left): https://codereview.webrtc.org/2383103002/diff/1/webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.cc#oldcode160 webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.cc:160: // we can have three CNG ...
4 years, 2 months ago (2016-10-04 11:38:18 UTC) #4
ossu
https://codereview.webrtc.org/2383103002/diff/1/webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.cc File webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.cc (right): https://codereview.webrtc.org/2383103002/diff/1/webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.cc#newcode62 webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.cc:62: // We can have four CNG on 8000Hz, 16000Hz, ...
4 years, 2 months ago (2016-10-04 12:40:24 UTC) #5
danilchap
https://codereview.webrtc.org/2383103002/diff/1/webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.h File webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.h (right): https://codereview.webrtc.org/2383103002/diff/1/webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.h#newcode44 webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.h:44: // Returns true if CNG is configured with payload ...
4 years, 2 months ago (2016-10-04 12:45:04 UTC) #6
ossu
https://codereview.webrtc.org/2383103002/diff/1/webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.h File webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.h (right): https://codereview.webrtc.org/2383103002/diff/1/webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.h#newcode44 webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.h:44: // Returns true if CNG is configured with payload ...
4 years, 2 months ago (2016-10-04 12:49:15 UTC) #7
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/2383103002/60001
4 years, 2 months ago (2016-10-05 15:32:48 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-05 15:44:25 UTC) #17
commit-bot: I haz the power
4 years, 2 months ago (2016-10-05 15:44:35 UTC) #19
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/425a6ccac3c6c485048685566b259c540280cc2a
Cr-Commit-Position: refs/heads/master@{#14530}

Powered by Google App Engine
This is Rietveld 408576698