|
|
Chromium Code Reviews|
Created:
4 years, 2 months ago by perkj_webrtc Modified:
4 years, 2 months ago CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com Target Ref:
refs/pending/heads/master Project:
webrtc Visibility:
Public. |
DescriptionAdd limitations of number of frames that can be created in I420BufferPool::CreateBuffer.
If more than 60 frames are created and not returned, the implementation will crash.
I420BufferPool are currently used by the VP8 decoder, Quality scaler and VideoFrameFactory.
BUG=b/31390397
NOTRY=true // Because of failing gclient runhooks on some bots
Committed: https://crrev.com/5f8ebaeffd2f4f7a3e5f857c407b2ff9aca7454e
Cr-Commit-Position: refs/heads/master@{#14395}
Patch Set 1 #
Total comments: 4
Patch Set 2 : Increased size and addressed nit. #Patch Set 3 : Fix definition/declaration. #
Messages
Total messages: 23 (12 generated)
Patchset #2 (id:20001) has been deleted
perkj@webrtc.org changed reviewers: + magjed@webrtc.org, mflodman@webrtc.org
Is this a good idea to ad to Canary?
One comment about the limit, LGTM with that comment addressed. https://codereview.webrtc.org/2370653003/diff/1/webrtc/common_video/include/i... File webrtc/common_video/include/i420_buffer_pool.h (right): https://codereview.webrtc.org/2370653003/diff/1/webrtc/common_video/include/i... webrtc/common_video/include/i420_buffer_pool.h:41: static const int kMaxNumberOfFramesBeforeCrash = 60; I'd like to raise this limit a bit higher. Normally it shouldn't be this high, but in the case of intentionally increasing the receive side delay this (= 2 second @ 30fps and 1s @ 60 fps) might be on the lower end. WDYT of setting this to 300 (=10s @ 30fps, and 330MB mem usage in HD)?
lgtm if this is temporary for debugging purposes and not intended to reach stable. https://codereview.webrtc.org/2370653003/diff/1/webrtc/common_video/i420_buff... File webrtc/common_video/i420_buffer_pool.cc (right): https://codereview.webrtc.org/2370653003/diff/1/webrtc/common_video/i420_buff... webrtc/common_video/i420_buffer_pool.cc:27: RTC_CHECK(buffers_.size() < kMaxNumberOfFramesBeforeCrash); nit: Use RTC_CHECK_LT (even if it must crash exactly at kMaxNumberOfFramesBeforeCrash with the current code).
https://codereview.webrtc.org/2370653003/diff/1/webrtc/common_video/i420_buff... File webrtc/common_video/i420_buffer_pool.cc (right): https://codereview.webrtc.org/2370653003/diff/1/webrtc/common_video/i420_buff... webrtc/common_video/i420_buffer_pool.cc:27: RTC_CHECK(buffers_.size() < kMaxNumberOfFramesBeforeCrash); On 2016/09/26 14:50:55, magjed_webrtc wrote: > nit: Use RTC_CHECK_LT (even if it must crash exactly at > kMaxNumberOfFramesBeforeCrash with the current code). Done. https://codereview.webrtc.org/2370653003/diff/1/webrtc/common_video/include/i... File webrtc/common_video/include/i420_buffer_pool.h (right): https://codereview.webrtc.org/2370653003/diff/1/webrtc/common_video/include/i... webrtc/common_video/include/i420_buffer_pool.h:41: static const int kMaxNumberOfFramesBeforeCrash = 60; On 2016/09/26 14:36:47, mflodman wrote: > I'd like to raise this limit a bit higher. Normally it shouldn't be this high, > but in the case of intentionally increasing the receive side delay this (= 2 > second @ 30fps and 1s @ 60 fps) might be on the lower end. > > WDYT of setting this to 300 (=10s @ 30fps, and 330MB mem usage in HD)? > ok- set to 300.
The CQ bit was checked by perkj@webrtc.org
The patchset sent to the CQ was uploaded after l-g-t-m from magjed@webrtc.org, mflodman@webrtc.org Link to the patchset: https://codereview.webrtc.org/2370653003/#ps40001 (title: "Increased size and addressed nit.")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: ios64_sim_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/ios64_sim_dbg/builds/10959) ios_arm64_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/ios_arm64_dbg/builds/13259) mac_compile_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/mac_compile_dbg/builds/...)
The CQ bit was checked by perkj@webrtc.org
The patchset sent to the CQ was uploaded after l-g-t-m from magjed@webrtc.org, mflodman@webrtc.org Link to the patchset: https://codereview.webrtc.org/2370653003/#ps60001 (title: "Fix definition/declaration.")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: win_x64_clang_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_x64_clang_dbg/build...)
Description was changed from ========== Add limitations of number of frames that can be created in I420BufferPool::CreateBuffer. If more than 60 frames are created and not returned, the implementation will crash. I420BufferPool are currently used by the VP8 decoder, Quality scaler and VideoFrameFactory. BUG=b/31390397 ========== to ========== Add limitations of number of frames that can be created in I420BufferPool::CreateBuffer. If more than 60 frames are created and not returned, the implementation will crash. I420BufferPool are currently used by the VP8 decoder, Quality scaler and VideoFrameFactory. BUG=b/31390397 NOTRY=true // Because of failing gclient runhooks on some bots ==========
The CQ bit was checked by perkj@webrtc.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/...
Message was sent while issue was closed.
Description was changed from ========== Add limitations of number of frames that can be created in I420BufferPool::CreateBuffer. If more than 60 frames are created and not returned, the implementation will crash. I420BufferPool are currently used by the VP8 decoder, Quality scaler and VideoFrameFactory. BUG=b/31390397 NOTRY=true // Because of failing gclient runhooks on some bots ========== to ========== Add limitations of number of frames that can be created in I420BufferPool::CreateBuffer. If more than 60 frames are created and not returned, the implementation will crash. I420BufferPool are currently used by the VP8 decoder, Quality scaler and VideoFrameFactory. BUG=b/31390397 NOTRY=true // Because of failing gclient runhooks on some bots ==========
Message was sent while issue was closed.
Committed patchset #3 (id:60001)
Message was sent while issue was closed.
Description was changed from ========== Add limitations of number of frames that can be created in I420BufferPool::CreateBuffer. If more than 60 frames are created and not returned, the implementation will crash. I420BufferPool are currently used by the VP8 decoder, Quality scaler and VideoFrameFactory. BUG=b/31390397 NOTRY=true // Because of failing gclient runhooks on some bots ========== to ========== Add limitations of number of frames that can be created in I420BufferPool::CreateBuffer. If more than 60 frames are created and not returned, the implementation will crash. I420BufferPool are currently used by the VP8 decoder, Quality scaler and VideoFrameFactory. BUG=b/31390397 NOTRY=true // Because of failing gclient runhooks on some bots Committed: https://crrev.com/5f8ebaeffd2f4f7a3e5f857c407b2ff9aca7454e Cr-Commit-Position: refs/heads/master@{#14395} ==========
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/5f8ebaeffd2f4f7a3e5f857c407b2ff9aca7454e Cr-Commit-Position: refs/heads/master@{#14395} |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
