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

Commit d3af2e14 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "VideoThumbnail: improve thumbnailTimeUs." into main am: 90a150c2

parents 8c657a1b 90a150c2
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -372,10 +372,8 @@ public class ThumbnailUtils {

            final int width = Integer.parseInt(mmr.extractMetadata(METADATA_KEY_VIDEO_WIDTH));
            final int height = Integer.parseInt(mmr.extractMetadata(METADATA_KEY_VIDEO_HEIGHT));
            // Fall back to middle of video
            // Note: METADATA_KEY_DURATION unit is in ms, not us.
            final long thumbnailTimeUs =
                    Long.parseLong(mmr.extractMetadata(METADATA_KEY_DURATION)) * 1000 / 2;
            // Returns whatever frame the implementation considers representative.
            final long thumbnailTimeUs = -1;

            // If we're okay with something larger than native format, just
            // return a frame without up-scaling it