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

Issue 1149023002: Combine 'pssh' parsing routines. (Closed)

Created:
5 years, 7 months ago by jrummell
Modified:
5 years, 6 months ago
CC:
chromium-reviews, eme-reviews_chromium.org, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Combine CENC 'pssh' box parsing routines. Also update the routines to ignore 'pssh' boxes with version 2 or later. BUG=460359, 460360 TEST=new unittests pass Committed: https://crrev.com/b666d7874efac44b359a95329f0cb890e97671df Cr-Commit-Position: refs/heads/master@{#333556} Committed: https://crrev.com/7a84443597e92a03f90806712f8629df40bf408e Cr-Commit-Position: refs/heads/master@{#333611} Committed: https://crrev.com/4d54a811979a0a6e3b5260cb7acd6d4fa1df71de Cr-Commit-Position: refs/heads/master@{#334416}

Patch Set 1 #

Total comments: 4

Patch Set 2 : changes #

Patch Set 3 : rebase #

Total comments: 12

Patch Set 4 : changes #

Total comments: 12

Patch Set 5 : more comments #

Total comments: 4

Patch Set 6 : boxes #

Total comments: 4

Patch Set 7 : changes #

Patch Set 8 : fix array init #

Total comments: 4

Patch Set 9 : fix uint #

Total comments: 2

Patch Set 10 : size_t #

Unified diffs Side-by-side diffs Delta from patch set Stats (+395 lines, -334 lines) Patch
M components/cdm/browser/DEPS View 1 chunk +1 line, -1 line 0 comments Download
M components/cdm/browser/widevine_drm_delegate_android.cc View 2 chunks +3 lines, -137 lines 0 comments Download
M media/cdm/cenc_utils.h View 1 chunk +11 lines, -0 lines 0 comments Download
M media/cdm/cenc_utils.cc View 1 2 3 4 5 6 3 chunks +79 lines, -136 lines 0 comments Download
M media/cdm/cenc_utils_unittest.cc View 1 2 3 4 5 6 7 8 9 12 chunks +178 lines, -39 lines 0 comments Download
M media/formats/mp4/box_definitions.h View 1 chunk +11 lines, -1 line 0 comments Download
M media/formats/mp4/box_definitions.cc View 1 chunk +53 lines, -4 lines 0 comments Download
M media/formats/mp4/box_reader.h View 1 2 3 4 chunks +16 lines, -3 lines 0 comments Download
M media/formats/mp4/box_reader.cc View 1 7 chunks +43 lines, -13 lines 0 comments Download

Messages

Total messages: 41 (7 generated)
jrummell
PTAL. This is a replacement for https://codereview.chromium.org/1145853002/, unless you don't like it.
5 years, 7 months ago (2015-05-21 02:35:38 UTC) #2
sandersd (OOO until July 31)
https://codereview.chromium.org/1149023002/diff/1/media/cdm/cenc_utils.cc File media/cdm/cenc_utils.cc (right): https://codereview.chromium.org/1149023002/diff/1/media/cdm/cenc_utils.cc#newcode75 media/cdm/cenc_utils.cc:75: return false; This pattern (lines 68 to 75) is ...
5 years, 7 months ago (2015-05-22 19:51:25 UTC) #3
jrummell
Updated. https://codereview.chromium.org/1149023002/diff/1/media/cdm/cenc_utils.cc File media/cdm/cenc_utils.cc (right): https://codereview.chromium.org/1149023002/diff/1/media/cdm/cenc_utils.cc#newcode75 media/cdm/cenc_utils.cc:75: return false; On 2015/05/22 19:51:24, sandersd wrote: > ...
5 years, 7 months ago (2015-05-22 23:22:29 UTC) #4
sandersd (OOO until July 31)
lgtm
5 years, 6 months ago (2015-05-29 21:17:36 UTC) #5
ddorwin
I skimmed at a high-level. Mostly nits. I also slightly modified the first line of ...
5 years, 6 months ago (2015-06-04 18:08:45 UTC) #6
jrummell
Updated. https://codereview.chromium.org/1149023002/diff/40001/media/cdm/cenc_utils_unittest.cc File media/cdm/cenc_utils_unittest.cc (right): https://codereview.chromium.org/1149023002/diff/40001/media/cdm/cenc_utils_unittest.cc#newcode28 media/cdm/cenc_utils_unittest.cc:28: const uint8_t kClearKeyUuid[] = { On 2015/06/04 18:08:45, ...
5 years, 6 months ago (2015-06-04 21:47:11 UTC) #7
ddorwin
Thanks. https://codereview.chromium.org/1149023002/diff/60001/media/cdm/cenc_utils.cc File media/cdm/cenc_utils.cc (right): https://codereview.chromium.org/1149023002/diff/60001/media/cdm/cenc_utils.cc#newcode27 media/cdm/cenc_utils.cc:27: std::vector<mp4::FullProtectionSystemSpecificHeader>* children) { Why is this named |children|? ...
5 years, 6 months ago (2015-06-04 22:09:16 UTC) #8
jrummell
Updated. https://codereview.chromium.org/1149023002/diff/60001/media/cdm/cenc_utils.cc File media/cdm/cenc_utils.cc (right): https://codereview.chromium.org/1149023002/diff/60001/media/cdm/cenc_utils.cc#newcode27 media/cdm/cenc_utils.cc:27: std::vector<mp4::FullProtectionSystemSpecificHeader>* children) { On 2015/06/04 22:09:15, ddorwin wrote: ...
5 years, 6 months ago (2015-06-05 17:57:25 UTC) #9
ddorwin
LG % some nits for the parts I reviewed. https://codereview.chromium.org/1149023002/diff/80001/media/cdm/cenc_utils.cc File media/cdm/cenc_utils.cc (right): https://codereview.chromium.org/1149023002/diff/80001/media/cdm/cenc_utils.cc#newcode60 media/cdm/cenc_utils.cc:60: ...
5 years, 6 months ago (2015-06-08 03:43:23 UTC) #10
jrummell
Updated. https://codereview.chromium.org/1149023002/diff/80001/media/cdm/cenc_utils.cc File media/cdm/cenc_utils.cc (right): https://codereview.chromium.org/1149023002/diff/80001/media/cdm/cenc_utils.cc#newcode60 media/cdm/cenc_utils.cc:60: // Must have successfully parsed at least one ...
5 years, 6 months ago (2015-06-08 20:18:57 UTC) #11
ddorwin
https://codereview.chromium.org/1149023002/diff/100001/media/cdm/cenc_utils.cc File media/cdm/cenc_utils.cc (right): https://codereview.chromium.org/1149023002/diff/100001/media/cdm/cenc_utils.cc#newcode60 media/cdm/cenc_utils.cc:60: // Must have successfully parsed at least one 'pssh' ...
5 years, 6 months ago (2015-06-08 20:57:15 UTC) #12
jrummell
Updated. https://codereview.chromium.org/1149023002/diff/100001/media/cdm/cenc_utils.cc File media/cdm/cenc_utils.cc (right): https://codereview.chromium.org/1149023002/diff/100001/media/cdm/cenc_utils.cc#newcode60 media/cdm/cenc_utils.cc:60: // Must have successfully parsed at least one ...
5 years, 6 months ago (2015-06-08 22:03:37 UTC) #13
ddorwin
LG2M for what I reviewed.
5 years, 6 months ago (2015-06-09 17:56:37 UTC) #14
ddorwin
On 2015/06/09 17:56:37, ddorwin wrote: > LG2M for what I reviewed. And components/cdm/browser/ LGTM
5 years, 6 months ago (2015-06-09 17:57:32 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1149023002/120001
5 years, 6 months ago (2015-06-09 17:58:04 UTC) #18
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 6 months ago (2015-06-09 19:53:36 UTC) #19
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/b666d7874efac44b359a95329f0cb890e97671df Cr-Commit-Position: refs/heads/master@{#333556}
5 years, 6 months ago (2015-06-09 19:54:22 UTC) #20
Rune Fevang
A revert of this CL (patchset #7 id:120001) has been created in https://codereview.chromium.org/1170923005/ by rfevang@chromium.org. ...
5 years, 6 months ago (2015-06-09 20:43:19 UTC) #21
jrummell
Updated test code so it should compile on Mac.
5 years, 6 months ago (2015-06-09 22:18:20 UTC) #22
ddorwin
Fix in PS8 LGTM, assuming the change in data is intentional and okay. https://codereview.chromium.org/1149023002/diff/140001/media/cdm/cenc_utils_unittest.cc File ...
5 years, 6 months ago (2015-06-09 22:21:25 UTC) #23
jrummell
Comments only. https://codereview.chromium.org/1149023002/diff/140001/media/cdm/cenc_utils_unittest.cc File media/cdm/cenc_utils_unittest.cc (right): https://codereview.chromium.org/1149023002/diff/140001/media/cdm/cenc_utils_unittest.cc#newcode498 media/cdm/cenc_utils_unittest.cc:498: const uint8_t data1_bytes[] = {0x01, 0x02, 0x03, ...
5 years, 6 months ago (2015-06-09 22:37:26 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1149023002/140001
5 years, 6 months ago (2015-06-09 22:38:42 UTC) #27
ddorwin
https://codereview.chromium.org/1149023002/diff/140001/media/cdm/cenc_utils_unittest.cc File media/cdm/cenc_utils_unittest.cc (right): https://codereview.chromium.org/1149023002/diff/140001/media/cdm/cenc_utils_unittest.cc#newcode388 media/cdm/cenc_utils_unittest.cc:388: AppendData(box, data); Alternatively, you could update AppendData() to take ...
5 years, 6 months ago (2015-06-09 22:48:25 UTC) #28
jrummell
https://codereview.chromium.org/1149023002/diff/140001/media/cdm/cenc_utils_unittest.cc File media/cdm/cenc_utils_unittest.cc (right): https://codereview.chromium.org/1149023002/diff/140001/media/cdm/cenc_utils_unittest.cc#newcode388 media/cdm/cenc_utils_unittest.cc:388: AppendData(box, data); On 2015/06/09 22:48:24, ddorwin wrote: > Alternatively, ...
5 years, 6 months ago (2015-06-09 22:53:42 UTC) #29
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 6 months ago (2015-06-09 23:51:09 UTC) #30
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/7a84443597e92a03f90806712f8629df40bf408e Cr-Commit-Position: refs/heads/master@{#333611}
5 years, 6 months ago (2015-06-09 23:52:02 UTC) #31
kjellander (google.com)
A revert of this CL (patchset #8 id:140001) has been created in https://codereview.chromium.org/1165313003/ by kjellander@google.com. ...
5 years, 6 months ago (2015-06-10 07:21:20 UTC) #32
jrummell
Updated once again.
5 years, 6 months ago (2015-06-12 18:10:02 UTC) #33
ddorwin
https://codereview.chromium.org/1149023002/diff/160001/media/cdm/cenc_utils_unittest.cc File media/cdm/cenc_utils_unittest.cc (right): https://codereview.chromium.org/1149023002/diff/160001/media/cdm/cenc_utils_unittest.cc#newcode108 media/cdm/cenc_utils_unittest.cc:108: for (uint32_t i = 0; i < key1.size(); ++i) ...
5 years, 6 months ago (2015-06-12 23:34:38 UTC) #34
jrummell
Updated. https://codereview.chromium.org/1149023002/diff/160001/media/cdm/cenc_utils_unittest.cc File media/cdm/cenc_utils_unittest.cc (right): https://codereview.chromium.org/1149023002/diff/160001/media/cdm/cenc_utils_unittest.cc#newcode108 media/cdm/cenc_utils_unittest.cc:108: for (uint32_t i = 0; i < key1.size(); ...
5 years, 6 months ago (2015-06-12 23:58:55 UTC) #35
ddorwin
PS10 changes LGTM
5 years, 6 months ago (2015-06-13 01:06:09 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1149023002/180001
5 years, 6 months ago (2015-06-15 17:25:51 UTC) #39
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 6 months ago (2015-06-15 18:22:55 UTC) #40
commit-bot: I haz the power
5 years, 6 months ago (2015-06-15 18:24:36 UTC) #41
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/4d54a811979a0a6e3b5260cb7acd6d4fa1df71de
Cr-Commit-Position: refs/heads/master@{#334416}

Powered by Google App Engine
This is Rietveld 408576698