From 86ec6dec44b69ffd5393a782f7e17830cadbeb33 Mon Sep 17 00:00:00 2001 From: meh Date: Thu, 11 Mar 2021 11:31:01 +0100 Subject: [PATCH] fix: make it compile with unstable features --- src/format/io.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/format/io.rs b/src/format/io.rs index d458883..49da4ea 100644 --- a/src/format/io.rs +++ b/src/format/io.rs @@ -86,8 +86,8 @@ unsafe extern "C" fn seek(opaque: *mut c_void, offset: i64, whence: c_int) -> i6 let result: i64 = if whence == AVSEEK_SIZE { #[cfg(feature = "unstable")] match proxy.as_seek().stream_len() { - Ok(size) => size, - Err(err) => as_error(err), + Ok(size) => size.try_into().unwrap(), + Err(err) => as_error(err).into(), } #[cfg(not(feature = "unstable"))]