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

Issue 2532973002: Sanity check parsed QP values from H264 bitstream (Closed)

Created:
4 years ago by kthelgason
Modified:
4 years ago
CC:
tterriberry_mozilla.com, webrtc-reviews_webrtc.org
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Sanity check parsed QP values from H264 bitstream BUG=chromium:663610 Committed: https://crrev.com/b336392562dfd2febd66fcc2bdd531ea27c721bf Cr-Commit-Position: refs/heads/master@{#15377}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Add check to PPS parser as well #

Total comments: 2

Patch Set 3 : +const #

Total comments: 3

Patch Set 4 : fix pps qp range #

Patch Set 5 : add one last range check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -3 lines) Patch
M webrtc/common_video/h264/h264_bitstream_parser.cc View 1 2 3 4 3 chunks +18 lines, -1 line 0 comments Download
M webrtc/common_video/h264/pps_parser.cc View 1 2 3 2 chunks +10 lines, -0 lines 0 comments Download
M webrtc/common_video/h264/pps_parser_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 24 (9 generated)
kthelgason
This aborts parsing if the parsed QP values are out of reasonable bounds. This should ...
4 years ago (2016-11-28 15:26:44 UTC) #2
magjed_webrtc
https://codereview.webrtc.org/2532973002/diff/1/webrtc/common_video/h264/h264_bitstream_parser.cc File webrtc/common_video/h264/h264_bitstream_parser.cc (right): https://codereview.webrtc.org/2532973002/diff/1/webrtc/common_video/h264/h264_bitstream_parser.cc#newcode254 webrtc/common_video/h264/h264_bitstream_parser.cc:254: if (last_slice_qp_delta > 52 || last_slice_qp_delta < -52) { ...
4 years ago (2016-11-28 16:41:32 UTC) #4
pbos-webrtc
https://codereview.webrtc.org/2532973002/diff/1/webrtc/common_video/h264/h264_bitstream_parser.cc File webrtc/common_video/h264/h264_bitstream_parser.cc (right): https://codereview.webrtc.org/2532973002/diff/1/webrtc/common_video/h264/h264_bitstream_parser.cc#newcode254 webrtc/common_video/h264/h264_bitstream_parser.cc:254: if (last_slice_qp_delta > 52 || last_slice_qp_delta < -52) { ...
4 years ago (2016-11-28 17:15:46 UTC) #5
kthelgason
https://codereview.webrtc.org/2532973002/diff/1/webrtc/common_video/h264/h264_bitstream_parser.cc File webrtc/common_video/h264/h264_bitstream_parser.cc (right): https://codereview.webrtc.org/2532973002/diff/1/webrtc/common_video/h264/h264_bitstream_parser.cc#newcode254 webrtc/common_video/h264/h264_bitstream_parser.cc:254: if (last_slice_qp_delta > 52 || last_slice_qp_delta < -52) { ...
4 years ago (2016-11-29 10:27:12 UTC) #6
magjed_webrtc
lgtm https://codereview.webrtc.org/2532973002/diff/20001/webrtc/common_video/h264/h264_bitstream_parser.cc File webrtc/common_video/h264/h264_bitstream_parser.cc (right): https://codereview.webrtc.org/2532973002/diff/20001/webrtc/common_video/h264/h264_bitstream_parser.cc#newcode23 webrtc/common_video/h264/h264_bitstream_parser.cc:23: int kMaxAbsQpDeltaValue = 51; nit: const https://codereview.webrtc.org/2532973002/diff/20001/webrtc/common_video/h264/pps_parser.cc File ...
4 years ago (2016-11-29 10:34:32 UTC) #9
pbos-webrtc
https://codereview.webrtc.org/2532973002/diff/40001/webrtc/common_video/h264/h264_bitstream_parser.cc File webrtc/common_video/h264/h264_bitstream_parser.cc (right): https://codereview.webrtc.org/2532973002/diff/40001/webrtc/common_video/h264/h264_bitstream_parser.cc#newcode258 webrtc/common_video/h264/h264_bitstream_parser.cc:258: if (abs(last_slice_qp_delta) > kMaxAbsQpDeltaValue) { "The value of slice_qp_delta ...
4 years ago (2016-11-29 15:31:50 UTC) #10
pbos-webrtc
https://codereview.webrtc.org/2532973002/diff/40001/webrtc/common_video/h264/h264_bitstream_parser.cc File webrtc/common_video/h264/h264_bitstream_parser.cc (right): https://codereview.webrtc.org/2532973002/diff/40001/webrtc/common_video/h264/h264_bitstream_parser.cc#newcode258 webrtc/common_video/h264/h264_bitstream_parser.cc:258: if (abs(last_slice_qp_delta) > kMaxAbsQpDeltaValue) { On 2016/11/29 15:31:50, pbos-webrtc ...
4 years ago (2016-11-29 16:12:43 UTC) #11
kthelgason
On 2016/11/29 16:12:43, pbos-webrtc wrote: > https://codereview.webrtc.org/2532973002/diff/40001/webrtc/common_video/h264/h264_bitstream_parser.cc > File webrtc/common_video/h264/h264_bitstream_parser.cc (right): > > https://codereview.webrtc.org/2532973002/diff/40001/webrtc/common_video/h264/h264_bitstream_parser.cc#newcode258 > ...
4 years ago (2016-11-30 08:42:06 UTC) #12
kthelgason
On 2016/11/29 15:31:50, pbos-webrtc wrote: > "The value of pic_init_qp_minus26 shall be in the range ...
4 years ago (2016-11-30 08:45:37 UTC) #13
pbos-webrtc
On 2016/11/30 08:45:37, kthelgason wrote: > On 2016/11/29 15:31:50, pbos-webrtc wrote: > > "The value ...
4 years ago (2016-11-30 16:41:45 UTC) #14
kthelgason
On 2016/11/30 16:41:45, pbos-webrtc wrote: > I think the range checks might be good enough ...
4 years ago (2016-12-01 12:55:07 UTC) #15
pbos-webrtc
On 2016/12/01 12:55:07, kthelgason wrote: > On 2016/11/30 16:41:45, pbos-webrtc wrote: > > I think ...
4 years ago (2016-12-01 19:01:51 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2532973002/80001
4 years ago (2016-12-02 08:42:04 UTC) #19
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years ago (2016-12-02 09:29:51 UTC) #22
commit-bot: I haz the power
4 years ago (2016-12-02 09:30:01 UTC) #24
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/b336392562dfd2febd66fcc2bdd531ea27c721bf
Cr-Commit-Position: refs/heads/master@{#15377}

Powered by Google App Engine
This is Rietveld 408576698