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

Issue 1603643006: Reallocate encoded buffer size if needed. Initially set to the input image size. (Closed)

Created:
4 years, 11 months ago by åsapersson
Modified:
4 years, 11 months ago
Reviewers:
stefan-webrtc
CC:
webrtc-reviews_webrtc.org, video-team_agora.io, yujie_mao (webrtc), zhengzhonghou_agora.io, stefan-webrtc, tterriberry_mozilla.com, andresp, the sun, pbos-webrtc, perkj_webrtc, mflodman
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Reallocate encoded buffer size if needed. Initially set to the input image size. Issue may occur for very small input images (e.g. 4x4) when encoded image length > input image size. BUG=chromium:578193 Committed: https://crrev.com/d9f641e3417d0563626eddf18c38fe6a3532107b Cr-Commit-Position: refs/heads/master@{#11329}

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -0 lines) Patch
M webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc View 1 chunk +6 lines, -0 lines 3 comments Download
M webrtc/video/video_send_stream_tests.cc View 1 1 chunk +27 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (5 generated)
åsapersson
4 years, 11 months ago (2016-01-19 14:41:16 UTC) #3
stefan-webrtc
https://codereview.webrtc.org/1603643006/diff/20001/webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc File webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc (right): https://codereview.webrtc.org/1603643006/diff/20001/webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc#newcode666 webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc:666: encoded_image_._buffer = new uint8_t[encoded_image_._size]; Don't you have to copy ...
4 years, 11 months ago (2016-01-20 12:39:07 UTC) #4
åsapersson
https://codereview.webrtc.org/1603643006/diff/20001/webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc File webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc (right): https://codereview.webrtc.org/1603643006/diff/20001/webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc#newcode666 webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc:666: encoded_image_._buffer = new uint8_t[encoded_image_._size]; On 2016/01/20 12:39:07, stefan-webrtc (holmer) ...
4 years, 11 months ago (2016-01-20 13:32:00 UTC) #5
stefan-webrtc
lgtm if you decide to change this in a follow-up https://codereview.webrtc.org/1603643006/diff/20001/webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc File webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc (right): https://codereview.webrtc.org/1603643006/diff/20001/webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc#newcode666 ...
4 years, 11 months ago (2016-01-20 14:11:02 UTC) #6
åsapersson
On 2016/01/20 14:11:02, stefan-webrtc (holmer) wrote: > lgtm if you decide to change this in ...
4 years, 11 months ago (2016-01-21 08:03:10 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1603643006/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1603643006/20001
4 years, 11 months ago (2016-01-21 08:11:09 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 11 months ago (2016-01-21 09:11:39 UTC) #11
commit-bot: I haz the power
4 years, 11 months ago (2016-01-21 09:11:50 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/d9f641e3417d0563626eddf18c38fe6a3532107b
Cr-Commit-Position: refs/heads/master@{#11329}

Powered by Google App Engine
This is Rietveld 408576698