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

Issue 2302763002: Copy payload data when inserting packets into video_coding::PacketBuffer. (Closed)

Created:
4 years, 3 months ago by philipel
Modified:
4 years, 3 months ago
Reviewers:
brandtr, 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

Copy payload data when inserting packets into video_coding::PacketBuffer. The payload pointed to by |dataPtr| is volatile and needs to be copied to its own buffer. BUG=webrtc:5514 R=brandtr@webrtc.org, stefan@webrtc.org Committed: https://crrev.com/1f39ba1cd916d97e6f203ba9da717ae85aeb4577 Cr-Commit-Position: refs/heads/master@{#14321}

Patch Set 1 #

Total comments: 4

Patch Set 2 : non-persistent instead of volatile #

Patch Set 3 : delete --> delete[] #

Total comments: 4

Patch Set 4 : Added TODO #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -2 lines) Patch
M webrtc/modules/video_coding/packet_buffer.cc View 1 2 3 3 chunks +17 lines, -2 lines 0 comments Download

Messages

Total messages: 28 (15 generated)
philipel
4 years, 3 months ago (2016-09-01 09:43:52 UTC) #3
brandtr
https://codereview.webrtc.org/2302763002/diff/1/webrtc/modules/video_coding/packet_buffer.cc File webrtc/modules/video_coding/packet_buffer.cc (right): https://codereview.webrtc.org/2302763002/diff/1/webrtc/modules/video_coding/packet_buffer.cc#newcode97 webrtc/modules/video_coding/packet_buffer.cc:97: memcpy(payload, packet.dataPtr, packet.sizeBytes); In this block, the copied VCMPacket ...
4 years, 3 months ago (2016-09-01 12:45:14 UTC) #4
philipel
https://codereview.webrtc.org/2302763002/diff/1/webrtc/modules/video_coding/packet_buffer.cc File webrtc/modules/video_coding/packet_buffer.cc (right): https://codereview.webrtc.org/2302763002/diff/1/webrtc/modules/video_coding/packet_buffer.cc#newcode97 webrtc/modules/video_coding/packet_buffer.cc:97: memcpy(payload, packet.dataPtr, packet.sizeBytes); On 2016/09/01 12:45:13, brandtr wrote: > ...
4 years, 3 months ago (2016-09-01 12:49:07 UTC) #5
brandtr
lgtm https://codereview.webrtc.org/2302763002/diff/1/webrtc/modules/video_coding/packet_buffer.cc File webrtc/modules/video_coding/packet_buffer.cc (right): https://codereview.webrtc.org/2302763002/diff/1/webrtc/modules/video_coding/packet_buffer.cc#newcode97 webrtc/modules/video_coding/packet_buffer.cc:97: memcpy(payload, packet.dataPtr, packet.sizeBytes); On 2016/09/01 12:49:07, philipel wrote: ...
4 years, 3 months ago (2016-09-01 13:21:53 UTC) #6
philipel
https://codereview.webrtc.org/2302763002/diff/1/webrtc/modules/video_coding/packet_buffer.cc File webrtc/modules/video_coding/packet_buffer.cc (right): https://codereview.webrtc.org/2302763002/diff/1/webrtc/modules/video_coding/packet_buffer.cc#newcode97 webrtc/modules/video_coding/packet_buffer.cc:97: memcpy(payload, packet.dataPtr, packet.sizeBytes); On 2016/09/01 13:21:53, brandtr wrote: > ...
4 years, 3 months ago (2016-09-01 13:28:00 UTC) #7
philipel
ping
4 years, 3 months ago (2016-09-07 08:39:29 UTC) #16
stefan-webrtc
https://codereview.webrtc.org/2302763002/diff/40001/webrtc/modules/video_coding/packet_buffer.cc File webrtc/modules/video_coding/packet_buffer.cc (right): https://codereview.webrtc.org/2302763002/diff/40001/webrtc/modules/video_coding/packet_buffer.cc#newcode94 webrtc/modules/video_coding/packet_buffer.cc:94: // data has to be copied to its own ...
4 years, 3 months ago (2016-09-13 08:16:10 UTC) #17
philipel
https://codereview.webrtc.org/2302763002/diff/40001/webrtc/modules/video_coding/packet_buffer.cc File webrtc/modules/video_coding/packet_buffer.cc (right): https://codereview.webrtc.org/2302763002/diff/40001/webrtc/modules/video_coding/packet_buffer.cc#newcode94 webrtc/modules/video_coding/packet_buffer.cc:94: // data has to be copied to its own ...
4 years, 3 months ago (2016-09-13 11:12:07 UTC) #18
philipel
ping
4 years, 3 months ago (2016-09-20 09:31:21 UTC) #19
stefan-webrtc
lgtm
4 years, 3 months ago (2016-09-20 09:45:49 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/2302763002/60001
4 years, 3 months ago (2016-09-20 10:32:25 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg on master.tryserver.webrtc (JOB_TIMED_OUT, no build URL)
4 years, 3 months ago (2016-09-20 12:32:56 UTC) #25
philipel
4 years, 3 months ago (2016-09-21 09:28:01 UTC) #27
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
1f39ba1cd916d97e6f203ba9da717ae85aeb4577 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698