summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/CameraSourceTimeLapse.cpp
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2010-09-15 16:58:44 -0700
committerJames Dong <jdong@google.com>2010-09-15 16:58:44 -0700
commit616715ab614ce25ea395a8e9a553a82637f1021d (patch)
tree02b97415485d3ac6aa4091a16352bbbde88b836f /media/libstagefright/CameraSourceTimeLapse.cpp
parent3ee899e0466ecce107257beec04a2178939cf24e (diff)
downloadframeworks_av-616715ab614ce25ea395a8e9a553a82637f1021d.zip
frameworks_av-616715ab614ce25ea395a8e9a553a82637f1021d.tar.gz
frameworks_av-616715ab614ce25ea395a8e9a553a82637f1021d.tar.bz2
Fix potential unintialized variable yuvformat
Change-Id: If0a77855d98b45769a154b25d6535f30cd41536a
Diffstat (limited to 'media/libstagefright/CameraSourceTimeLapse.cpp')
-rw-r--r--media/libstagefright/CameraSourceTimeLapse.cpp3
1 files changed, 2 insertions, 1 deletions
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 @@ 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;
}