commit | 5d1d920be18881ca2c948dbca85ce47785742552 | [log] [tgz] |
---|---|---|
author | James Dong <jdong@google.com> | Wed Sep 15 16:58:44 2010 -0700 |
committer | James Dong <jdong@google.com> | Wed Sep 15 16:58:44 2010 -0700 |
tree | 629eaf94fbf0a33f7fe8f2dafc3f579a7ede9fcc | |
parent | 6545fcfd9642860389619dd5c83f6e6bfd455e5b [diff] [blame] |
Fix potential unintialized variable yuvformat Change-Id: If0a77855d98b45769a154b25d6535f30cd41536a
diff --git a/media/libstagefright/CameraSourceTimeLapse.cpp b/media/libstagefright/CameraSourceTimeLapse.cpp index 44d159a..227e090 100644 --- a/media/libstagefright/CameraSourceTimeLapse.cpp +++ b/media/libstagefright/CameraSourceTimeLapse.cpp
@@ -286,7 +286,8 @@ 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; }