Index: media/base/mac/video_frame_mac.cc |
diff --git a/media/base/mac/video_frame_mac.cc b/media/base/mac/video_frame_mac.cc |
index e532ddc7511089fd3eb2bd8a1589a3dd07b2ec31..9fd290465c0424b7dc56ccf76b64a06e3a065cd2 100644 |
--- a/media/base/mac/video_frame_mac.cc |
+++ b/media/base/mac/video_frame_mac.cc |
@@ -43,7 +43,7 @@ WrapVideoFrameInCVPixelBuffer(const VideoFrame& frame) { |
// represent I420 and NV12 frames. In addition, VideoFrame does not carry |
// colorimetric information, so this function assumes standard video range |
// and ITU Rec 709 primaries. |
- VideoFrame::Format video_frame_format = frame.format(); |
+ const VideoFrame::Format video_frame_format = frame.format(); |
OSType cv_format; |
if (video_frame_format == VideoFrame::Format::I420) { |
cv_format = kCVPixelFormatType_420YpCbCr8Planar; |