improve the performance at checking if a video is panorama
This commit is contained in:
parent
53cf27aa01
commit
50bc2f45b5
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue