diff options
author | James Dong <jdong@google.com> | 2010-09-15 16:58:44 -0700 |
---|---|---|
committer | James Dong <jdong@google.com> | 2010-09-15 16:58:44 -0700 |
commit | 616715ab614ce25ea395a8e9a553a82637f1021d (patch) | |
tree | 02b97415485d3ac6aa4091a16352bbbde88b836f /media/libstagefright | |
parent | 3ee899e0466ecce107257beec04a2178939cf24e (diff) | |
download | frameworks_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')
-rw-r--r-- | media/libstagefright/CameraSourceTimeLapse.cpp | 3 |
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; } |