Fix potential unintialized variable yuvformat

Change-Id: If0a77855d98b45769a154b25d6535f30cd41536a
This commit is contained in:
James Dong
2010-09-15 16:58:44 -07:00
parent 6545fcfd96
commit 5d1d920be1

View File

@@ -286,7 +286,8 @@ sp<IMemory> CameraSourceTimeLapse::cropYUVImage(const sp<IMemory> &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;
}