Merge pull request #359 from fufesou/master

Failed to decode audio frame
This commit is contained in:
RustDesk 2022-01-07 21:34:53 +08:00 committed by GitHub
commit 089acaa6e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -585,7 +585,7 @@ impl AudioHandler {
);
audio_buffer.lock().unwrap().extend(buffer);
} else {
audio_buffer.lock().unwrap().extend(buffer.iter().cloned());
audio_buffer.lock().unwrap().extend(buffer[0..n].iter().cloned());
}
}
#[cfg(any(target_os = "android"))]