H265 build fix for Android.

Build fix for H265 on Android so that https://webrtc-review.googlesource.com/c/src/+/325482 can land.

gn args:
target_os = "android"
proprietary_codecs = true

Bug: webrtc:15620
Change-Id: I8a134afbc50137ac17ce9a4a57d68dd3f3c6d52f
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/325483
Reviewed-by: Stefan Holmer <stefan@webrtc.org>
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Philip Eliasson <philipel@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#41053}
This commit is contained in:
philipel 2023-10-31 15:38:40 +01:00 committed by WebRTC LUCI CQ
parent cf2fe18daa
commit 3ee8117856

View File

@ -257,9 +257,8 @@ absl::optional<uint8_t> VideoDecoderWrapper::ParseQP(
}
#ifdef RTC_ENABLE_H265
case kVideoCodecH265:
h265_bitstream_parser_.ParseBitstream(buffer);
qp = h265_bitstream_parser_.GetLastSliceQp().value_or(-1);
success = (qp >= 0);
h265_bitstream_parser_.ParseBitstream(input_image);
qp = h265_bitstream_parser_.GetLastSliceQp();
break;
#endif
default: