Chromium Code Reviews

Issue 2501083003: Replace c-style cast and constrain value in VCMFecMethod::ProtectionFactor. (Closed)

Created:
4 years, 1 month ago by brandtr
Modified:
4 years, 1 month ago
Reviewers:
marpan2, marpan, stefan-webrtc
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, zhengzhonghou_agora.io, video-team_agora.io, stefan-webrtc, mflodman
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Replace c-style cast and constrain value in VCMFecMethod::ProtectionFactor. BUG=None Committed: https://crrev.com/05f845d025a8289851d7080501d1ff08e478e7f1 Cr-Commit-Position: refs/heads/master@{#15116}

Patch Set 1 : Use static_cast and std::min #

Total comments: 1

Patch Set 2 : Avoid wrap-around. #

Total comments: 2

Patch Set 3 : Feedback response 1. #

Unified diffs Side-by-side diffs Stats (+15 lines, -12 lines)
M webrtc/modules/video_coding/media_opt_util.cc View 6 chunks +15 lines, -12 lines 0 comments

Messages

Total messages: 29 (16 generated)
brandtr
Hey marpan, Would you mind having a look at this change? https://codereview.webrtc.org/2501083003/diff/1/webrtc/modules/video_coding/media_opt_util.cc File webrtc/modules/video_coding/media_opt_util.cc (right): ...
4 years, 1 month ago (2016-11-15 16:14:40 UTC) #2
marpan
lgtm
4 years, 1 month ago (2016-11-15 17:38:50 UTC) #4
stefan-webrtc
lgtm https://codereview.webrtc.org/2501083003/diff/20001/webrtc/modules/video_coding/media_opt_util.cc File webrtc/modules/video_coding/media_opt_util.cc (right): https://codereview.webrtc.org/2501083003/diff/20001/webrtc/modules/video_coding/media_opt_util.cc#newcode287 webrtc/modules/video_coding/media_opt_util.cc:287: std::min(static_cast<float>(UINT8_MAX), Use numeric_limits instead
4 years, 1 month ago (2016-11-15 19:21:02 UTC) #6
brandtr
https://codereview.webrtc.org/2501083003/diff/20001/webrtc/modules/video_coding/media_opt_util.cc File webrtc/modules/video_coding/media_opt_util.cc (right): https://codereview.webrtc.org/2501083003/diff/20001/webrtc/modules/video_coding/media_opt_util.cc#newcode287 webrtc/modules/video_coding/media_opt_util.cc:287: std::min(static_cast<float>(UINT8_MAX), On 2016/11/15 19:21:02, stefan-webrtc (holmer) wrote: > Use ...
4 years, 1 month ago (2016-11-16 07:53:08 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/2501083003/40001
4 years, 1 month ago (2016-11-16 08:14:32 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: win_baremetal on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_baremetal/builds/16119)
4 years, 1 month ago (2016-11-16 08:30:22 UTC) #16
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/2501083003/40001
4 years, 1 month ago (2016-11-16 12:25:33 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: win_baremetal on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_baremetal/builds/16152)
4 years, 1 month ago (2016-11-16 12:38:02 UTC) #20
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/2501083003/40001
4 years, 1 month ago (2016-11-16 16:23:29 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: win_baremetal on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_baremetal/builds/16174)
4 years, 1 month ago (2016-11-16 16:36:05 UTC) #24
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/2501083003/40001
4 years, 1 month ago (2016-11-17 06:46:08 UTC) #26
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-17 06:59:42 UTC) #27
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 06:59:51 UTC) #29
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/05f845d025a8289851d7080501d1ff08e478e7f1
Cr-Commit-Position: refs/heads/master@{#15116}

Powered by Google App Engine