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

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))