From 5d1d920be18881ca2c948dbca85ce47785742552 Mon Sep 17 00:00:00 2001 From: James Dong Date: Wed, 15 Sep 2010 16:58:44 -0700 Subject: [PATCH] Fix potential unintialized variable yuvformat Change-Id: If0a77855d98b45769a154b25d6535f30cd41536a --- media/libstagefright/CameraSourceTimeLapse.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/media/libstagefright/CameraSourceTimeLapse.cpp b/media/libstagefright/CameraSourceTimeLapse.cpp index 44d159ac74110..227e090942ef8 100644 --- a/media/libstagefright/CameraSourceTimeLapse.cpp +++ b/media/libstagefright/CameraSourceTimeLapse.cpp @@ -286,7 +286,8 @@ sp CameraSourceTimeLapse::cropYUVImage(const sp &source_data) YUVImage::YUVFormat yuvFormat; if (srcFormat == OMX_COLOR_FormatYUV420SemiPlanar) { yuvFormat = YUVImage::YUV420SemiPlanar; - } else if (srcFormat == OMX_COLOR_FormatYUV420Planar) { + } else { + CHECK_EQ(srcFormat, OMX_COLOR_FormatYUV420Planar); yuvFormat = YUVImage::YUV420Planar; }