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

Issue 10765015: Reintroduce kFramePadBytes in frame allocation. (Closed)

Created:
8 years, 5 months ago by rbultje1
Modified:
8 years, 5 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Visibility:
Public.

Description

Reintroduce kFramePadBytes in frame allocation. Some FFmpeg SIMD functions overread/write slightly to have more efficient buffer access code. Not adding padding thus can lead to overreads/bytes (and crashes) when the buffer pointer points near the end of the frame boundaries. BUG=136231 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=145900

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -2 lines) Patch
media/base/video_frame.cc View 3 chunks +4 lines, -2 lines 1 comment Download

Messages

Total messages: 8 (0 generated)
rbultje1
8 years, 5 months ago (2012-07-09 23:23:48 UTC) #1
DaleCurtis
https://chromiumcodereview.appspot.com/10765015/diff/1/media/base/video_frame.cc File media/base/video_frame.cc (right): https://chromiumcodereview.appspot.com/10765015/diff/1/media/base/video_frame.cc#newcode115 media/base/video_frame.cc:115: av_malloc(bytes_per_row * aligned_height + kFramePadBytes)); FF_INPUT_BUFFER_PADDING_SIZE instead ?
8 years, 5 months ago (2012-07-09 23:25:51 UTC) #2
rbultje1
They're syntactically different, INPUT_BUFFER_PADDING_SIZE is the padding in input buffers (encoded bitstream). This is the ...
8 years, 5 months ago (2012-07-09 23:31:16 UTC) #3
DaleCurtis
On 2012/07/09 23:31:16, rbultje1 wrote: > They're syntactically different, INPUT_BUFFER_PADDING_SIZE is the padding in > ...
8 years, 5 months ago (2012-07-10 00:01:45 UTC) #4
rbultje1
On 2012/07/10 00:01:45, DaleCurtis wrote: > On 2012/07/09 23:31:16, rbultje1 wrote: > > They're syntactically ...
8 years, 5 months ago (2012-07-10 00:07:27 UTC) #5
DaleCurtis
On 2012/07/10 00:07:27, rbultje1 wrote: > On 2012/07/10 00:01:45, DaleCurtis wrote: > > On 2012/07/09 ...
8 years, 5 months ago (2012-07-10 00:16:55 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rbultje@chromium.org/10765015/1
8 years, 5 months ago (2012-07-10 16:21:32 UTC) #7
commit-bot: I haz the power
8 years, 5 months ago (2012-07-10 17:31:30 UTC) #8
Change committed as 145900

Powered by Google App Engine
This is Rietveld 408576698