Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(247)

Unified Diff: webrtc/modules/rtp_rtcp/include/rtp_cvo.h

Issue 1763973003: [cleanup] fixed macros and includes in rtp_cvo.h (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2e30d898ec3f7705ea19959ef4b5aa142b270442..5d5c995cd5fca94c70cf698622988ac79371e56d 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;
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698