improve the performance at checking if a video is panorama

This commit is contained in:
tibbi 2019-06-18 12:48:49 +02:00
parent 53cf27aa01
commit 50bc2f45b5
1 changed files with 1 additions and 1 deletions

View File

@ -741,7 +741,7 @@ fun Context.parseFileChannel(path: String, fc: FileChannel, level: Int, start: L
val sb = StringBuilder()
val buffer = ByteArray(1024)
while (true) {
while (sb.length < size) {
val n = fis.read(buffer)
if (n != -1) {
sb.append(String(buffer, 0, n))