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}
diff --git a/sdk/android/src/jni/video_decoder_wrapper.cc b/sdk/android/src/jni/video_decoder_wrapper.cc
index 0c0358d..e083df5 100644
--- a/sdk/android/src/jni/video_decoder_wrapper.cc
+++ b/sdk/android/src/jni/video_decoder_wrapper.cc
@@ -257,9 +257,8 @@
     }
 #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: