Merge "ExifInterface: Fix a bug to return only a JPEG-compressed thumbnail" into nyc-dev

This commit is contained in:
Jae Seo
2016-04-20 17:50:50 +00:00
committed by Android (Google) Code Review

View File

@@ -933,7 +933,7 @@ void* MyMtpDatabase::getThumbnail(MtpObjectHandle handle, size_t& outThumbSize)
}
if (image_data.thumbnail.length == 0
|| image_data.thumbnail.format == ::piex::Image::kJpegCompressed) {
|| image_data.thumbnail.format != ::piex::Image::kJpegCompressed) {
// No thumbnail or non jpeg thumbnail.
break;
}