Merge pull request #68 from lifning/master

fix build on platforms where std::os::raw::c_char is not i8
This commit is contained in:
Polochon-street 2021-07-29 17:26:26 +02:00 committed by GitHub
commit e5898d5cd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -201,8 +201,7 @@ fn index(error: &Error) -> usize {
} }
// XXX: the length has to be synced with the number of errors // XXX: the length has to be synced with the number of errors
static mut STRINGS: [[c_char; AV_ERROR_MAX_STRING_SIZE]; 27] = static mut STRINGS: [[c_char; AV_ERROR_MAX_STRING_SIZE]; 27] = [[0; AV_ERROR_MAX_STRING_SIZE]; 27];
[[0_i8; AV_ERROR_MAX_STRING_SIZE]; 27];
pub fn register_all() { pub fn register_all() {
unsafe { unsafe {