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

Issue 1107593004: Disregard trailing null bytes when locating RBSP stop bits. (Closed)

Created:
5 years, 8 months ago by sandersd (OOO until July 31)
Modified:
4 years, 9 months ago
Reviewers:
Pawel Osciak
CC:
chromium-reviews, 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

Disregard trailing null bytes when locating RBSP stop bits. This is a more faithful implementation of more_rbsp_data(). There are two ways this could happen despite being invalid: (1) H264Parser does not strip trailing null bytes from NAL units as it should. This is generally not a problem because the conversion to Annex B won't introduce them either. (2) There could be trailing null bytes before the Annex B conversion. This isn't valid (at least for PPS NAL units), but the referenced bug includes a sample where the PPS in the avcC record includes a trailing null byte. BUG=479229 Committed: https://crrev.com/86e5caf8d9d8490f645757bc886b942f10d0f7b1 Cr-Commit-Position: refs/heads/master@{#381879}

Patch Set 1 #

Patch Set 2 : Update bitstream converter as well. #

Total comments: 6

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -12 lines) Patch
M media/filters/h264_bit_reader.cc View 1 2 1 chunk +18 lines, -9 lines 0 comments Download
M media/filters/h264_to_annex_b_bitstream_converter.cc View 1 2 2 chunks +12 lines, -3 lines 0 comments Download

Messages

Total messages: 24 (7 generated)
sandersd (OOO until July 31)
5 years, 8 months ago (2015-04-23 21:46:22 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1107593004/1
5 years, 8 months ago (2015-04-23 21:49:26 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 8 months ago (2015-04-23 23:09:33 UTC) #6
Pawel Osciak
The trailing null bytes are not a part of the NALU per spec, so after ...
5 years, 8 months ago (2015-04-24 07:23:07 UTC) #7
sandersd (OOO until July 31)
On 2015/04/24 07:23:07, Pawel Osciak wrote: > The trailing null bytes are not a part ...
5 years, 8 months ago (2015-04-24 18:24:16 UTC) #8
Pawel Osciak
On 2015/04/24 18:24:16, sandersd wrote: > On 2015/04/24 07:23:07, Pawel Osciak wrote: > > The ...
5 years, 8 months ago (2015-04-27 01:06:07 UTC) #9
sandersd (OOO until July 31)
On 2015/04/27 01:06:07, Pawel Osciak wrote: > On 2015/04/24 18:24:16, sandersd wrote: > Null bytes ...
5 years, 8 months ago (2015-04-27 18:09:26 UTC) #10
Pawel Osciak
On 2015/04/27 18:09:26, sandersd wrote: > On 2015/04/27 01:06:07, Pawel Osciak wrote: > > On ...
5 years, 7 months ago (2015-04-30 11:24:31 UTC) #11
sandersd (OOO until July 31)
> Would you prefer to have the fixup here or in the bitstream converter? Perhaps ...
5 years, 7 months ago (2015-04-30 22:59:21 UTC) #12
sandersd (OOO until July 31)
On 2015/04/30 22:59:21, sandersd wrote: > > Would you prefer to have the fixup here ...
4 years, 10 months ago (2016-02-19 23:01:47 UTC) #13
sandersd (OOO until July 31)
PTAL.
4 years, 9 months ago (2016-02-29 20:44:49 UTC) #14
Pawel Osciak
https://codereview.chromium.org/1107593004/diff/20001/media/filters/h264_bit_reader.cc File media/filters/h264_bit_reader.cc (right): https://codereview.chromium.org/1107593004/diff/20001/media/filters/h264_bit_reader.cc#newcode107 media/filters/h264_bit_reader.cc:107: // them when there is no data. (At least ...
4 years, 9 months ago (2016-03-01 08:56:22 UTC) #15
sandersd (OOO until July 31)
https://codereview.chromium.org/1107593004/diff/20001/media/filters/h264_bit_reader.cc File media/filters/h264_bit_reader.cc (right): https://codereview.chromium.org/1107593004/diff/20001/media/filters/h264_bit_reader.cc#newcode107 media/filters/h264_bit_reader.cc:107: // them when there is no data. (At least ...
4 years, 9 months ago (2016-03-17 19:07:51 UTC) #16
Pawel Osciak
lgtm
4 years, 9 months ago (2016-03-18 01:59:10 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1107593004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1107593004/40001
4 years, 9 months ago (2016-03-18 02:03:01 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 9 months ago (2016-03-18 03:17:50 UTC) #22
commit-bot: I haz the power
4 years, 9 months ago (2016-03-18 03:18:49 UTC) #24
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/86e5caf8d9d8490f645757bc886b942f10d0f7b1
Cr-Commit-Position: refs/heads/master@{#381879}

Powered by Google App Engine
This is Rietveld 408576698