Index: webrtc/modules/rtp_rtcp/include/rtp_cvo.h |
diff --git a/webrtc/modules/rtp_rtcp/include/rtp_cvo.h b/webrtc/modules/rtp_rtcp/include/rtp_cvo.h |
index 5d5c995cd5fca94c70cf698622988ac79371e56d..b60b06e5df4fd0c7d7b2f978274735f4a33a5385 100644 |
--- a/webrtc/modules/rtp_rtcp/include/rtp_cvo.h |
+++ b/webrtc/modules/rtp_rtcp/include/rtp_cvo.h |
@@ -34,8 +34,10 @@ |
return 0; |
} |
-inline VideoRotation ConvertCVOByteToVideoRotation(uint8_t rotation) { |
- switch (rotation) { |
+inline VideoRotation ConvertCVOByteToVideoRotation(uint8_t cvo_byte) { |
+ // CVO byte: |0 0 0 0 C F R R|. |
+ const uint8_t rotation_bits = cvo_byte & 0x3; |
+ switch (rotation_bits) { |
case 0: |
return kVideoRotation_0; |
case 1: |