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 2361903002: mp4: skip 0 size trun samples (Closed)

Created:
4 years, 3 months ago by chcunningham
Modified:
4 years, 3 months ago
Reviewers:
chcunningham1, wolenetz
CC:
chromium-reviews, feature-media-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MSE mp4: skip 0 size trun samples. Code that follows assumes samples have some non-zero size. Failing to skip causes unsafe memory de-references and decoder errors (observed in email thread with twitch.tv Committed: https://crrev.com/30ed88a9083a5a37b5dfcba911ca45e5f6e00913 Cr-Commit-Position: refs/heads/master@{#420647}

Patch Set 1 #

Total comments: 3

Patch Set 2 : replace DVLOG with LIMITED_MEDIA_LOG #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -2 lines) Patch
M media/formats/mp4/mp4_stream_parser.h View 1 1 chunk +3 lines, -0 lines 1 comment Download
M media/formats/mp4/mp4_stream_parser.cc View 1 3 chunks +16 lines, -2 lines 2 comments Download

Messages

Total messages: 19 (12 generated)
wolenetz
LGTM https://codereview.chromium.org/2361903002/diff/1/media/formats/mp4/mp4_stream_parser.cc File media/formats/mp4/mp4_stream_parser.cc (right): https://codereview.chromium.org/2361903002/diff/1/media/formats/mp4/mp4_stream_parser.cc#newcode622 media/formats/mp4/mp4_stream_parser.cc:622: &frame_buf[0], frame_buf.size(), runs_->is_keyframe(), buffer_type, Yeah, I found I ...
4 years, 3 months ago (2016-09-22 18:10:10 UTC) #2
wolenetz
https://codereview.chromium.org/2361903002/diff/1/media/formats/mp4/mp4_stream_parser.cc File media/formats/mp4/mp4_stream_parser.cc (right): https://codereview.chromium.org/2361903002/diff/1/media/formats/mp4/mp4_stream_parser.cc#newcode561 media/formats/mp4/mp4_stream_parser.cc:561: DVLOG(3) << " Skipping sample of size 0"; Actually ...
4 years, 3 months ago (2016-09-22 22:59:11 UTC) #3
chcunningham1
Please CQ if it looks good https://codereview.chromium.org/2361903002/diff/1/media/formats/mp4/mp4_stream_parser.cc File media/formats/mp4/mp4_stream_parser.cc (right): https://codereview.chromium.org/2361903002/diff/1/media/formats/mp4/mp4_stream_parser.cc#newcode561 media/formats/mp4/mp4_stream_parser.cc:561: DVLOG(3) << " ...
4 years, 3 months ago (2016-09-22 23:30:48 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2361903002/20001
4 years, 3 months ago (2016-09-23 17:29:29 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-09-23 17:36:17 UTC) #16
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/30ed88a9083a5a37b5dfcba911ca45e5f6e00913 Cr-Commit-Position: refs/heads/master@{#420647}
4 years, 3 months ago (2016-09-23 17:37:54 UTC) #18
wolenetz
4 years, 3 months ago (2016-09-23 19:14:54 UTC) #19
Message was sent while issue was closed.
I noted a typo and a fix after you landed the latest patchset. I've uploaded
https://codereview.chromium.org/2365653006 for your review, which fixes these
comments:

https://codereview.chromium.org/2361903002/diff/20001/media/formats/mp4/mp4_s...
File media/formats/mp4/mp4_stream_parser.cc (right):

https://codereview.chromium.org/2361903002/diff/20001/media/formats/mp4/mp4_s...
media/formats/mp4/mp4_stream_parser.cc:38: }
nit: // namespace

https://codereview.chromium.org/2361903002/diff/20001/media/formats/mp4/mp4_s...
media/formats/mp4/mp4_stream_parser.cc:50: num_top_level_box_skipped_(0),
aside: this other counter is no longer used. we should remove it.

https://codereview.chromium.org/2361903002/diff/20001/media/formats/mp4/mp4_s...
File media/formats/mp4/mp4_stream_parser.h (right):

https://codereview.chromium.org/2361903002/diff/20001/media/formats/mp4/mp4_s...
media/formats/mp4/mp4_stream_parser.h:133: int num_emtpy_samples_skipped_;
nit: typo.

Powered by Google App Engine
This is Rietveld 408576698