rust-av / ffms2-rs

ffms2 bindings
MIT License
10 stars 5 forks source link

Use ffi type aliases instead of rust types #34

Closed mipimipi closed 5 months ago

mipimipi commented 5 months ago

Since ffi type aliases are mapped to different rust types depending on the architecture the lib is built for, using rust types for type casts can cause problem for certain architecture (see this issue). Such problem can be avoided by using the corresponding ffi type aliases instead. The PR replaces rust types by the corresponding ffi type aliases in certain type casts.