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

Commit ee1134a8 authored by Insun Kang's avatar Insun Kang Committed by android-build-merger
Browse files

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

am: 801d4161

* commit '801d4161':
  ExifInterface: Fix a bug to return only a JPEG-compressed thumbnail

Change-Id: I149ab7790af6442ce3f1437465723fd331718ef2
parents f6f61fc8 801d4161
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;
                }
                }