From 96150a63224001c773bb62e7bba38ace02176827 Mon Sep 17 00:00:00 2001 From: Danil Chapovalov Date: Mon, 7 Mar 2016 10:55:21 +0100 Subject: [PATCH] [cleanup] fixed macros and includes in rtp_cvo.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit assert macro replaced with RTC_NOTREACHED, added proper include for it. R=asapersson@webrtc.org, åsapersson Review URL: https://codereview.webrtc.org/1763973003 . Cr-Commit-Position: refs/heads/master@{#11886} --- webrtc/modules/rtp_rtcp/include/rtp_cvo.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webrtc/modules/rtp_rtcp/include/rtp_cvo.h b/webrtc/modules/rtp_rtcp/include/rtp_cvo.h index 2e30d898ec..5d5c995cd5 100644 --- a/webrtc/modules/rtp_rtcp/include/rtp_cvo.h +++ b/webrtc/modules/rtp_rtcp/include/rtp_cvo.h @@ -10,6 +10,7 @@ #ifndef WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_CVO_H_ #define WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_CVO_H_ +#include "webrtc/base/checks.h" #include "webrtc/common_video/rotation.h" namespace webrtc { @@ -29,7 +30,7 @@ inline uint8_t ConvertVideoRotationToCVOByte(VideoRotation rotation) { case kVideoRotation_270: return 3; } - assert(false); + RTC_NOTREACHED(); return 0; } @@ -41,11 +42,10 @@ inline VideoRotation ConvertCVOByteToVideoRotation(uint8_t rotation) { return kVideoRotation_90; case 2: return kVideoRotation_180; - break; case 3: return kVideoRotation_270; default: - assert(false); + RTC_NOTREACHED(); return kVideoRotation_0; } }