commit | ff98976e40459e910cfd1a7693bb08cff4dabd42 | [log] [tgz] |
---|---|---|
author | James Dong <jdong@google.com> | Fri Feb 11 13:04:32 2011 -0800 |
committer | James Dong <jdong@google.com> | Fri Feb 11 13:05:19 2011 -0800 |
tree | a4744911d9ee5685a20ffe4b6ad086e42a21255b | |
parent | d52e5c3edcb1aedce8b5bea705422fd47b06622e [diff] |
The color conversion from YUV420Planar to RGB only requires the image width to be a multiple of 2, not 4. bug - 3379293 Change-Id: I8960737f0604b54ce90dfc26137f1582073b4ab2
diff --git a/media/libstagefright/colorconversion/ColorConverter.cpp b/media/libstagefright/colorconversion/ColorConverter.cpp index d518c97..3b92e5d 100644 --- a/media/libstagefright/colorconversion/ColorConverter.cpp +++ b/media/libstagefright/colorconversion/ColorConverter.cpp
@@ -187,7 +187,7 @@ status_t ColorConverter::convertYUV420Planar( const BitmapParams &src, const BitmapParams &dst) { - if (!((dst.mWidth & 3) == 0 + if (!((dst.mWidth & 1) == 0 && (src.mCropLeft & 1) == 0 && src.cropWidth() == dst.cropWidth() && src.cropHeight() == dst.cropHeight())) {