Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 801d4161 authored by Jae Seo's avatar Jae Seo Committed by Android (Google) Code Review
Browse files

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

parents 205d10bb 82c2ce1d
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -933,7 +933,7 @@ void* MyMtpDatabase::getThumbnail(MtpObjectHandle handle, size_t& outThumbSize)
                }
                }


                if (image_data.thumbnail.length == 0
                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.
                    // No thumbnail or non jpeg thumbnail.
                    break;
                    break;
                }
                }