Index: webrtc/modules/video_coding/qp_parser.cc |
diff --git a/webrtc/modules/video_coding/qp_parser.cc b/webrtc/modules/video_coding/qp_parser.cc |
index 976cfff963edb2c69b638c9f6a35de5e932da6c1..26b46f17fbfc3161a9c511cfbb02a95427eee6a3 100644 |
--- a/webrtc/modules/video_coding/qp_parser.cc |
+++ b/webrtc/modules/video_coding/qp_parser.cc |
@@ -12,6 +12,7 @@ |
#include "webrtc/common_types.h" |
#include "webrtc/modules/video_coding/utility/vp8_header_parser.h" |
+#include "webrtc/modules/video_coding/utility/vp9_uncompressed_header_parser.h" |
namespace webrtc { |
@@ -20,6 +21,9 @@ bool QpParser::GetQp(const VCMEncodedFrame& frame, int* qp) { |
case kVideoCodecVP8: |
// QP range: [0, 127]. |
return vp8::GetQp(frame.Buffer(), frame.Length(), qp); |
+ case kVideoCodecVP9: |
+ // QP range: [0, 255]. |
+ return vp9::GetQp(frame.Buffer(), frame.Length(), qp); |
default: |
return false; |
} |