mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-23 02:10:44 +01:00
Instant video processing metadata.
This commit is contained in:
committed by
Clark Chen
parent
f6d8dcf6fd
commit
b280ff7495
@@ -180,7 +180,7 @@ public final class InMemoryTranscoder implements Closeable {
|
||||
|
||||
if (metadata != null && metadata.getSanitizedMetadata() != null) {
|
||||
memoryFile.seek(metadata.getDataOffset());
|
||||
return new MediaStream(new SequenceInputStream(new ByteArrayInputStream(metadata.getSanitizedMetadata()), ByteStreams.limit(new FileInputStream(memoryFileFileDescriptor), metadata.getDataLength())), MimeTypes.VIDEO_MP4, 0, 0);
|
||||
return new MediaStream(new SequenceInputStream(new ByteArrayInputStream(metadata.getSanitizedMetadata()), ByteStreams.limit(new FileInputStream(memoryFileFileDescriptor), metadata.getDataLength())), MimeTypes.VIDEO_MP4, 0, 0, true);
|
||||
} else {
|
||||
memoryFile.seek(0);
|
||||
return new MediaStream(new FileInputStream(memoryFileFileDescriptor), MimeTypes.VIDEO_MP4, 0, 0);
|
||||
|
||||
Reference in New Issue
Block a user