diff options
author | James Dong <jdong@google.com> | 2011-02-11 13:04:32 -0800 |
---|---|---|
committer | James Dong <jdong@google.com> | 2011-02-11 13:05:19 -0800 |
commit | ff98976e40459e910cfd1a7693bb08cff4dabd42 (patch) | |
tree | a4744911d9ee5685a20ffe4b6ad086e42a21255b /media/libstagefright | |
parent | d52e5c3edcb1aedce8b5bea705422fd47b06622e (diff) | |
download | frameworks_av-ff98976e40459e910cfd1a7693bb08cff4dabd42.zip frameworks_av-ff98976e40459e910cfd1a7693bb08cff4dabd42.tar.gz frameworks_av-ff98976e40459e910cfd1a7693bb08cff4dabd42.tar.bz2 |
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
Diffstat (limited to 'media/libstagefright')
-rw-r--r-- | media/libstagefright/colorconversion/ColorConverter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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::convertCbYCrY( 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())) { |