diff options
Diffstat (limited to 'third_party/libwebrtc/common_video/h265/h265_bitstream_parser.cc')
-rw-r--r-- | third_party/libwebrtc/common_video/h265/h265_bitstream_parser.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/third_party/libwebrtc/common_video/h265/h265_bitstream_parser.cc b/third_party/libwebrtc/common_video/h265/h265_bitstream_parser.cc index f270f228c1..9247d5d272 100644 --- a/third_party/libwebrtc/common_video/h265/h265_bitstream_parser.cc +++ b/third_party/libwebrtc/common_video/h265/h265_bitstream_parser.cc @@ -531,8 +531,7 @@ absl::optional<int> H265BitstreamParser::GetLastSliceQp() const { if (!last_slice_qp_delta_ || !last_slice_pps_id_) { return absl::nullopt; } - uint32_t pps_id = 0; - const H265PpsParser::PpsState* pps = GetPPS(pps_id); + const H265PpsParser::PpsState* pps = GetPPS(last_slice_pps_id_.value()); if (!pps) return absl::nullopt; const int parsed_qp = 26 + pps->init_qp_minus26 + *last_slice_qp_delta_; |