Index: webrtc/modules/video_coding/main/source/video_receiver.cc |
diff --git a/webrtc/modules/video_coding/main/source/video_receiver.cc b/webrtc/modules/video_coding/main/source/video_receiver.cc |
index 7371f9d33721b69910d2dd2b02ca9ba1fc328ecb..761206f773ec73b75dd8e47278f19bf503b69543 100644 |
--- a/webrtc/modules/video_coding/main/source/video_receiver.cc |
+++ b/webrtc/modules/video_coding/main/source/video_receiver.cc |
@@ -302,7 +302,13 @@ int32_t VideoReceiver::Decode(uint16_t maxWaitTimeMs) { |
if (pre_decode_image_callback_) { |
EncodedImage encoded_image(frame->EncodedImage()); |
- pre_decode_image_callback_->Encoded(encoded_image, NULL, NULL); |
+ int qp = -1; |
+ if (qp_parser_.GetQp(frame->Buffer(), frame->Length(), |
pbos-webrtc
2015/10/15 11:56:02
Log a warning if this fails imo.
åsapersson
2015/10/16 09:33:59
Added log warnings in vp8_header_parser.cc.
|
+ frame->CodecSpecific()->codecType, &qp)) { |
+ encoded_image.qp_ = qp; |
+ } |
+ pre_decode_image_callback_->Encoded( |
+ encoded_image, frame->CodecSpecific(), NULL); |
} |
#ifdef DEBUG_DECODER_BIT_STREAM |