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

Issue 1267003004: Revert to zero-initializing buffers for FFmpegVideoDecoder (Closed)

Created:
5 years, 4 months ago by emircan
Modified:
5 years, 4 months ago
Reviewers:
DaleCurtis, miu
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, wjia+watch_chromium.org, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert to zero-initializing buffers for FFmpegVideoDecoder Following the regression on , I reverted back to PatchSet#5 from [1] [0] https://code.google.com/p/chromium/issues/detail?id=514759 [1] https://codereview.chromium.org/1227383003 - Modified VideoFramePool::CreateFrame() to zero-initialize newly allocated frames. BUG=514759 Committed: https://crrev.com/3ea546df82371eeb7b62f2de25416d4bd21ce745 Cr-Commit-Position: refs/heads/master@{#343289}

Patch Set 1 : #

Total comments: 2

Patch Set 2 : Changed method name. #

Total comments: 4

Patch Set 3 : Returning 0 for default. #

Total comments: 7

Patch Set 4 : Zero initialize in VideoFrame::CreateFrame() #

Patch Set 5 : Zero initialize only the planes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -11 lines) Patch
M media/base/video_frame_pool.h View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M media/base/video_frame_pool.cc View 1 2 3 4 2 chunks +13 lines, -5 lines 0 comments Download
M media/base/video_frame_pool_unittest.cc View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M media/filters/ffmpeg_video_decoder.cc View 1 2 3 2 chunks +3 lines, -5 lines 0 comments Download

Messages

Total messages: 27 (5 generated)
emircan
Please take a look.
5 years, 4 months ago (2015-08-03 21:09:44 UTC) #3
DaleCurtis
https://codereview.chromium.org/1267003004/diff/20001/media/base/video_frame.h File media/base/video_frame.h (right): https://codereview.chromium.org/1267003004/diff/20001/media/base/video_frame.h#newcode253 media/base/video_frame.h:253: // Returns the actual allocation size for a YUV ...
5 years, 4 months ago (2015-08-03 21:23:25 UTC) #5
emircan
https://codereview.chromium.org/1267003004/diff/20001/media/base/video_frame.h File media/base/video_frame.h (right): https://codereview.chromium.org/1267003004/diff/20001/media/base/video_frame.h#newcode253 media/base/video_frame.h:253: // Returns the actual allocation size for a YUV ...
5 years, 4 months ago (2015-08-03 21:41:54 UTC) #6
DaleCurtis
Oh yeah... Hmm, I feel these names are confusing, but don't have a better suggestion. ...
5 years, 4 months ago (2015-08-03 21:44:36 UTC) #7
miu
Can't access crbug.com/514759. Why was the change reverted? MSAN issues?
5 years, 4 months ago (2015-08-04 04:38:43 UTC) #8
emircan
On 2015/08/04 04:38:43, miu wrote: > Can't access crbug.com/514759. Why was the change reverted? MSAN ...
5 years, 4 months ago (2015-08-04 18:54:47 UTC) #10
DaleCurtis
Yeah, the gist is ffmpeg is using these values to calculate other values and then ...
5 years, 4 months ago (2015-08-04 19:07:44 UTC) #11
emircan
https://codereview.chromium.org/1267003004/diff/60001/media/base/video_frame.cc File media/base/video_frame.cc (right): https://codereview.chromium.org/1267003004/diff/60001/media/base/video_frame.cc#newcode634 media/base/video_frame.cc:634: if (allocated_size_) On 2015/08/04 19:07:44, DaleCurtis wrote: > Just ...
5 years, 4 months ago (2015-08-04 19:54:35 UTC) #12
miu
https://codereview.chromium.org/1267003004/diff/80001/media/base/video_frame.h File media/base/video_frame.h (right): https://codereview.chromium.org/1267003004/diff/80001/media/base/video_frame.h#newcode452 media/base/video_frame.h:452: size_t allocated_size_; This isn't needed. See comments below. https://codereview.chromium.org/1267003004/diff/80001/media/base/video_frame_pool.cc ...
5 years, 4 months ago (2015-08-04 20:16:22 UTC) #13
DaleCurtis
https://codereview.chromium.org/1267003004/diff/80001/media/base/video_frame_pool.cc File media/base/video_frame_pool.cc (right): https://codereview.chromium.org/1267003004/diff/80001/media/base/video_frame_pool.cc#newcode87 media/base/video_frame_pool.cc:87: memset(frame->data(0), 0, frame->allocated_size()); On 2015/08/04 20:16:22, miu wrote: > ...
5 years, 4 months ago (2015-08-04 21:20:53 UTC) #14
emircan
On 2015/08/04 20:16:22, miu wrote: > https://codereview.chromium.org/1267003004/diff/80001/media/base/video_frame_pool.cc#newcode87 > media/base/video_frame_pool.cc:87: memset(frame->data(0), 0, > frame->allocated_size()); > You ...
5 years, 4 months ago (2015-08-04 22:20:25 UTC) #15
miu
https://codereview.chromium.org/1267003004/diff/80001/media/base/video_frame_pool.cc File media/base/video_frame_pool.cc (right): https://codereview.chromium.org/1267003004/diff/80001/media/base/video_frame_pool.cc#newcode87 media/base/video_frame_pool.cc:87: memset(frame->data(0), 0, frame->allocated_size()); On 2015/08/04 21:20:52, DaleCurtis wrote: > ...
5 years, 4 months ago (2015-08-06 21:23:30 UTC) #16
DaleCurtis
https://codereview.chromium.org/1267003004/diff/80001/media/filters/ffmpeg_video_decoder.cc File media/filters/ffmpeg_video_decoder.cc (right): https://codereview.chromium.org/1267003004/diff/80001/media/filters/ffmpeg_video_decoder.cc#newcode121 media/filters/ffmpeg_video_decoder.cc:121: format, coded_size, gfx::Rect(size), natural_size, kNoTimestamp(), true); On 2015/08/06 21:23:30, ...
5 years, 4 months ago (2015-08-07 00:56:02 UTC) #17
emircan
On 2015/08/06 21:23:30, miu wrote: > Okay, but is it enough to ensure FFMPEG isn't ...
5 years, 4 months ago (2015-08-07 17:07:45 UTC) #18
miu
On 2015/08/07 17:07:45, emircan wrote: > On 2015/08/06 21:23:30, miu wrote: > > Okay, but ...
5 years, 4 months ago (2015-08-11 21:06:31 UTC) #19
emircan
On 2015/08/11 21:06:31, miu wrote: > On 2015/08/07 17:07:45, emircan wrote: > > On 2015/08/06 ...
5 years, 4 months ago (2015-08-11 21:43:49 UTC) #20
miu
lgtm, assuming it runs on the msan bots (there was a "patch step" failure as ...
5 years, 4 months ago (2015-08-13 19:34:24 UTC) #21
emircan
On 2015/08/13 19:34:24, miu wrote: > lgtm, assuming it runs on the msan bots (there ...
5 years, 4 months ago (2015-08-13 21:05:31 UTC) #22
DaleCurtis
lgtm
5 years, 4 months ago (2015-08-13 21:17:29 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1267003004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1267003004/120001
5 years, 4 months ago (2015-08-13 21:21:45 UTC) #25
commit-bot: I haz the power
Committed patchset #5 (id:120001)
5 years, 4 months ago (2015-08-13 22:25:27 UTC) #26
commit-bot: I haz the power
5 years, 4 months ago (2015-08-13 22:25:58 UTC) #27
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/3ea546df82371eeb7b62f2de25416d4bd21ce745
Cr-Commit-Position: refs/heads/master@{#343289}

Powered by Google App Engine
This is Rietveld 408576698