[INFO] cloning repository https://github.com/v0l/ffmpeg-rs-raw [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/v0l/ffmpeg-rs-raw" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fv0l%2Fffmpeg-rs-raw", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fv0l%2Fffmpeg-rs-raw'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ad08b049fca3d96ec6e22109780217ce1314aa50 [INFO] testing v0l/ffmpeg-rs-raw against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fv0l%2Fffmpeg-rs-raw" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/v0l/ffmpeg-rs-raw [INFO] finished tweaking git repo https://github.com/v0l/ffmpeg-rs-raw [INFO] tweaked toml for git repo https://github.com/v0l/ffmpeg-rs-raw written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/v0l/ffmpeg-rs-raw on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/v0l/ffmpeg-rs-raw already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3eccd2ec544aa7ebb7c2621dbe188537b97a7e67700d32588eccfdff45fb216a [INFO] running `Command { std: "docker" "start" "-a" "3eccd2ec544aa7ebb7c2621dbe188537b97a7e67700d32588eccfdff45fb216a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3eccd2ec544aa7ebb7c2621dbe188537b97a7e67700d32588eccfdff45fb216a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3eccd2ec544aa7ebb7c2621dbe188537b97a7e67700d32588eccfdff45fb216a", kill_on_drop: false }` [INFO] [stdout] 3eccd2ec544aa7ebb7c2621dbe188537b97a7e67700d32588eccfdff45fb216a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5bdc5033eaa4af73383276c860ea0a9cd7e021f68dde4ed13486f77e914906bd [INFO] running `Command { std: "docker" "start" "-a" "5bdc5033eaa4af73383276c860ea0a9cd7e021f68dde4ed13486f77e914906bd", kill_on_drop: false }` [INFO] [stderr] Compiling glob v0.3.3 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling cfg-if v1.0.3 [INFO] [stderr] Compiling unicode-ident v1.0.19 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling libloading v0.8.8 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling bindgen v0.69.5 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling bitflags v2.9.4 [INFO] [stderr] Compiling clang-sys v1.8.1 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling find-msvc-tools v0.1.1 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling cc v1.2.37 [INFO] [stderr] Compiling anyhow v1.0.99 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling ffmpeg-rs-raw v0.2.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling slimbox v0.1.0 (https://github.com/v0l/slimbox?rev=f40fb964fc515b40807d925104ee7a5f3122c1fc#f40fb964) [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling regex-automata v0.4.10 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Compiling clang v2.0.0 [INFO] [stderr] Compiling regex v1.11.2 [INFO] [stderr] Compiling ffmpeg-sys-the-third v3.0.1+ffmpeg-7.1 (https://github.com/v0l/ffmpeg-the-third.git?rev=bf1d21071e92ad7d212f9129eaf13faabeb42920#bf1d2107) [INFO] [stdout] warning: unexpected `cfg` condition value: `avcodec_version_greater_than_59_24` [INFO] [stdout] --> src/lib.rs:21:11 [INFO] [stdout] | [INFO] [stdout] 21 | #[cfg(not(feature = "avcodec_version_greater_than_59_24"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avcodec_version_greater_than_59_24` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avutil_version_greater_than_57_24` [INFO] [stdout] --> src/lib.rs:23:11 [INFO] [stdout] | [INFO] [stdout] 23 | #[cfg(not(feature = "avutil_version_greater_than_57_24"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avutil_version_greater_than_57_24` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avutil_version_greater_than_58_22` [INFO] [stdout] --> src/audio_fifo.rs:36:15 [INFO] [stdout] | [INFO] [stdout] 36 | #[cfg(feature = "avutil_version_greater_than_58_22")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avutil_version_greater_than_58_22` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avutil_version_greater_than_58_22` [INFO] [stdout] --> src/audio_fifo.rs:38:19 [INFO] [stdout] | [INFO] [stdout] 38 | #[cfg(not(feature = "avutil_version_greater_than_58_22"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avutil_version_greater_than_58_22` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avutil_version_greater_than_58_22` [INFO] [stdout] --> src/audio_fifo.rs:62:19 [INFO] [stdout] | [INFO] [stdout] 62 | #[cfg(feature = "avutil_version_greater_than_58_22")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avutil_version_greater_than_58_22` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avutil_version_greater_than_58_22` [INFO] [stdout] --> src/audio_fifo.rs:64:23 [INFO] [stdout] | [INFO] [stdout] 64 | #[cfg(not(feature = "avutil_version_greater_than_58_22"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avutil_version_greater_than_58_22` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avformat_version_greater_than_60_19` [INFO] [stdout] --> src/demux.rs:2:7 [INFO] [stdout] | [INFO] [stdout] 2 | #[cfg(feature = "avformat_version_greater_than_60_19")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avformat_version_greater_than_60_19` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avformat_version_greater_than_60_22` [INFO] [stdout] --> src/demux.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | #[cfg(feature = "avformat_version_greater_than_60_22")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avformat_version_greater_than_60_22` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::warn` [INFO] [stdout] --> src/demux.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use log::warn; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avformat_version_greater_than_60_19` [INFO] [stdout] --> src/demux.rs:165:15 [INFO] [stdout] | [INFO] [stdout] 165 | #[cfg(feature = "avformat_version_greater_than_60_19")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avformat_version_greater_than_60_19` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avformat_version_greater_than_60_19` [INFO] [stdout] --> src/demux.rs:169:15 [INFO] [stdout] | [INFO] [stdout] 169 | #[cfg(feature = "avformat_version_greater_than_60_19")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avformat_version_greater_than_60_19` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avformat_version_greater_than_60_19` [INFO] [stdout] --> src/demux.rs:271:19 [INFO] [stdout] | [INFO] [stdout] 271 | #[cfg(feature = "avformat_version_greater_than_60_19")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avformat_version_greater_than_60_19` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avcodec_version_greater_than_61_13` [INFO] [stdout] --> src/encode.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | #[cfg(feature = "avcodec_version_greater_than_61_13")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avcodec_version_greater_than_61_13` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avcodec_version_greater_than_61_13` [INFO] [stdout] --> src/encode.rs:85:11 [INFO] [stdout] | [INFO] [stdout] 85 | #[cfg(feature = "avcodec_version_greater_than_61_13")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avcodec_version_greater_than_61_13` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `ff_api_avio_write_nonconst` [INFO] [stdout] --> src/mux.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | #[cfg(feature = "ff_api_avio_write_nonconst")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `ff_api_avio_write_nonconst` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `ff_api_avio_write_nonconst` [INFO] [stdout] --> src/mux.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | #[cfg(not(feature = "ff_api_avio_write_nonconst"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `ff_api_avio_write_nonconst` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avformat_version_greater_than_60_19` [INFO] [stdout] --> src/stream_info.rs:2:7 [INFO] [stdout] | [INFO] [stdout] 2 | #[cfg(feature = "avformat_version_greater_than_60_19")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avformat_version_greater_than_60_19` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avformat_version_greater_than_60_19` [INFO] [stdout] --> src/stream_info.rs:197:7 [INFO] [stdout] | [INFO] [stdout] 197 | #[cfg(feature = "avformat_version_greater_than_60_19")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avformat_version_greater_than_60_19` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avformat_version_greater_than_60_19` [INFO] [stdout] --> src/stream_info.rs:209:7 [INFO] [stdout] | [INFO] [stdout] 209 | #[cfg(feature = "avformat_version_greater_than_60_19")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avformat_version_greater_than_60_19` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avformat_version_greater_than_60_19` [INFO] [stdout] --> src/stream_info.rs:219:7 [INFO] [stdout] | [INFO] [stdout] 219 | #[cfg(feature = "avformat_version_greater_than_60_19")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avformat_version_greater_than_60_19` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avformat_version_greater_than_60_19` [INFO] [stdout] --> src/stream_info.rs:23:11 [INFO] [stdout] | [INFO] [stdout] 23 | #[cfg(feature = "avformat_version_greater_than_60_19")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avformat_version_greater_than_60_19` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avutil_version_greater_than_57_30` [INFO] [stdout] --> src/lib.rs:72:11 [INFO] [stdout] | [INFO] [stdout] 72 | #[cfg(feature = "avutil_version_greater_than_57_30")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avutil_version_greater_than_57_30` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avcodec_version_greater_than_54_24` [INFO] [stdout] --> src/lib.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | feature = "avcodec_version_greater_than_54_24", [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avcodec_version_greater_than_54_24` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avutil_version_greater_than_57_30` [INFO] [stdout] --> src/lib.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | not(feature = "avutil_version_greater_than_57_30") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avutil_version_greater_than_57_30` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avcodec_version_greater_than_54_24` [INFO] [stdout] --> src/lib.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | not(feature = "avcodec_version_greater_than_54_24"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avcodec_version_greater_than_54_24` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avutil_version_greater_than_57_30` [INFO] [stdout] --> src/lib.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | not(feature = "avutil_version_greater_than_57_30") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avutil_version_greater_than_57_30` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated module `std::intrinsics`: import this function via `std::mem` instead [INFO] [stdout] --> src/stream_info.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | use std::intrinsics::transmute; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_audio_fifo_realloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | av_audio_fifo_realloc(self.ctx, av_audio_fifo_size(self.ctx) + (*frame).nb_samples); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/audio_fifo.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub unsafe fn buffer_frame(&mut self, frame: *mut AVFrame) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_audio_fifo_size` is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:33:45 [INFO] [stdout] | [INFO] [stdout] 33 | av_audio_fifo_realloc(self.ctx, av_audio_fifo_size(self.ctx) + (*frame).nb_samples); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:33:76 [INFO] [stdout] | [INFO] [stdout] 33 | av_audio_fifo_realloc(self.ctx, av_audio_fifo_size(self.ctx) + (*frame).nb_samples); [INFO] [stdout] | ^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:37:23 [INFO] [stdout] | [INFO] [stdout] 37 | let buf_ptr = (*frame).extended_data as *const _; [INFO] [stdout] | ^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_audio_fifo_write` is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:41:15 [INFO] [stdout] | [INFO] [stdout] 41 | ret = av_audio_fifo_write(self.ctx, buf_ptr, (*frame).nb_samples); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:41:54 [INFO] [stdout] | [INFO] [stdout] 41 | ret = av_audio_fifo_write(self.ctx, buf_ptr, (*frame).nb_samples); [INFO] [stdout] | ^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:46:24 [INFO] [stdout] | [INFO] [stdout] 46 | self.pts = (*frame).pts; [INFO] [stdout] | ^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_audio_fifo_size` is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | if av_audio_fifo_size(self.ctx) >= samples_out as _ { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/audio_fifo.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | pub unsafe fn get_frame(&mut self, samples_out: usize) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_frame_alloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:54:33 [INFO] [stdout] | [INFO] [stdout] 54 | let mut out_frame = av_frame_alloc(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | (*out_frame).nb_samples = samples_out as _; [INFO] [stdout] | ^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | (*out_frame).format = self.format as _; [INFO] [stdout] | ^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_channel_layout_default` is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | av_channel_layout_default(&mut (*out_frame).ch_layout, self.channels as _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:57:44 [INFO] [stdout] | [INFO] [stdout] 57 | av_channel_layout_default(&mut (*out_frame).ch_layout, self.channels as _); [INFO] [stdout] | ^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_frame_get_buffer` is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:59:23 [INFO] [stdout] | [INFO] [stdout] 59 | let ret = av_frame_get_buffer(out_frame, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_frame_free` is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:60:33 [INFO] [stdout] | [INFO] [stdout] 60 | bail_ffmpeg!(ret, { av_frame_free(&mut out_frame) }); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:63:27 [INFO] [stdout] | [INFO] [stdout] 63 | let buf_ptr = (*out_frame).extended_data as *const _; [INFO] [stdout] | ^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_audio_fifo_read` is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:67:16 [INFO] [stdout] | [INFO] [stdout] 67 | if av_audio_fifo_read(self.ctx, buf_ptr, samples_out as _) < samples_out as _ { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_frame_free` is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:68:17 [INFO] [stdout] | [INFO] [stdout] 68 | av_frame_free(&mut out_frame); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:73:13 [INFO] [stdout] | [INFO] [stdout] 73 | (*out_frame).pts = self.pts; [INFO] [stdout] | ^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | self.pts += (*out_frame).nb_samples as i64; [INFO] [stdout] | ^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avcodec_get_hw_config` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:141:25 [INFO] [stdout] | [INFO] [stdout] 141 | hw_config = avcodec_get_hw_config(codec, i); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/decode.rs:133:5 [INFO] [stdout] | [INFO] [stdout] 133 | / pub unsafe fn list_supported_hw_accel( [INFO] [stdout] 134 | | &self, [INFO] [stdout] 135 | | codec: *const AVCodec, [INFO] [stdout] 136 | | ) -> impl Iterator { [INFO] [stdout] | |_____________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:147:16 [INFO] [stdout] | [INFO] [stdout] 147 | if (*hw_config).methods & hw_flag == hw_flag { [INFO] [stdout] | ^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:148:26 [INFO] [stdout] | [INFO] [stdout] 148 | ret.push((*hw_config).device_type); [INFO] [stdout] | ^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `hw_config` is never read [INFO] [stdout] --> src/decode.rs:137:29 [INFO] [stdout] | [INFO] [stdout] 137 | let mut hw_config = ptr::null(); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:164:25 [INFO] [stdout] | [INFO] [stdout] 164 | let codec_par = (*stream).codecpar; [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/decode.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 155 | / pub unsafe fn setup_decoder_for_stream( [INFO] [stdout] 156 | | &mut self, [INFO] [stdout] 157 | | stream: *mut AVStream, [INFO] [stdout] 158 | | options: Option>, [INFO] [stdout] 159 | | ) -> Result<&mut DecoderCodecContext, Error> { [INFO] [stdout] | |________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `decode::Decoder::add_decoder` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:171:19 [INFO] [stdout] | [INFO] [stdout] 171 | let ctx = self.add_decoder((*codec_par).codec_id, (*stream).index)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:171:36 [INFO] [stdout] | [INFO] [stdout] 171 | let ctx = self.add_decoder((*codec_par).codec_id, (*stream).index)?; [INFO] [stdout] | ^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:171:59 [INFO] [stdout] | [INFO] [stdout] 171 | let ctx = self.add_decoder((*codec_par).codec_id, (*stream).index)?; [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avcodec_parameters_to_context` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:172:19 [INFO] [stdout] | [INFO] [stdout] 172 | let ret = avcodec_parameters_to_context(ctx.context, (*stream).codecpar); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:172:62 [INFO] [stdout] | [INFO] [stdout] 172 | let ret = avcodec_parameters_to_context(ctx.context, (*stream).codecpar); [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:175:28 [INFO] [stdout] | [INFO] [stdout] 175 | let stream_index = (*stream).index; [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `decode::Decoder::open_decoder_codec_by_index` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:176:9 [INFO] [stdout] | [INFO] [stdout] 176 | self.open_decoder_codec_by_index(stream_index, options)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avcodec_open2` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:183:19 [INFO] [stdout] | [INFO] [stdout] 183 | let ret = avcodec_open2(ctx.context, ctx.codec, &mut dict); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/decode.rs:181:5 [INFO] [stdout] | [INFO] [stdout] 181 | pub unsafe fn open_decoder_codec(&mut self, ctx: &DecoderCodecContext) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `options_to_dict` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:196:17 [INFO] [stdout] | [INFO] [stdout] 196 | crate::options_to_dict(options)? [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/decode.rs:189:5 [INFO] [stdout] | [INFO] [stdout] 189 | / pub unsafe fn open_decoder_codec_by_index( [INFO] [stdout] 190 | | &mut self, [INFO] [stdout] 191 | | stream_index: i32, [INFO] [stdout] 192 | | options: Option>, [INFO] [stdout] 193 | | ) -> Result<(), Error> { [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avcodec_open2` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:200:23 [INFO] [stdout] | [INFO] [stdout] 200 | let ret = avcodec_open2(ctx.context, ctx.codec, &mut dict); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avcodec_find_decoder` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:215:25 [INFO] [stdout] | [INFO] [stdout] 215 | let codec = avcodec_find_decoder(codec_id); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/decode.rs:209:5 [INFO] [stdout] | [INFO] [stdout] 209 | / pub unsafe fn add_decoder( [INFO] [stdout] 210 | | &mut self, [INFO] [stdout] 211 | | codec_id: AVCodecID, [INFO] [stdout] 212 | | stream_index: i32, [INFO] [stdout] 213 | | ) -> Result<&mut DecoderCodecContext, Error> { [INFO] [stdout] | |________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avcodec_get_name` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:219:27 [INFO] [stdout] | [INFO] [stdout] 219 | rstr!(avcodec_get_name(codec_id)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | core::ffi::CStr::from_ptr($str).to_str().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/decode.rs:219:21 [INFO] [stdout] | [INFO] [stdout] 219 | rstr!(avcodec_get_name(codec_id)) [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `rstr` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avcodec_alloc_context3` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:222:27 [INFO] [stdout] | [INFO] [stdout] 222 | let context = avcodec_alloc_context3(codec); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avcodec_get_name` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:227:36 [INFO] [stdout] | [INFO] [stdout] 227 | let codec_name = rstr!(avcodec_get_name((*codec).id)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:227:53 [INFO] [stdout] | [INFO] [stdout] 227 | let codec_name = rstr!(avcodec_get_name((*codec).id)); [INFO] [stdout] | ^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | core::ffi::CStr::from_ptr($str).to_str().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/decode.rs:227:30 [INFO] [stdout] | [INFO] [stdout] 227 | let codec_name = rstr!(avcodec_get_name((*codec).id)); [INFO] [stdout] | ------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `rstr` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avcodec_get_hw_config` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:234:33 [INFO] [stdout] | [INFO] [stdout] 234 | hw_config = avcodec_get_hw_config(codec, i); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_hwdevice_get_type_name` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:239:41 [INFO] [stdout] | [INFO] [stdout] 239 | let hw_name = rstr!(av_hwdevice_get_type_name((*hw_config).device_type)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:239:67 [INFO] [stdout] | [INFO] [stdout] 239 | let hw_name = rstr!(av_hwdevice_get_type_name((*hw_config).device_type)); [INFO] [stdout] | ^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | core::ffi::CStr::from_ptr($str).to_str().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/decode.rs:239:35 [INFO] [stdout] | [INFO] [stdout] 239 | let hw_name = rstr!(av_hwdevice_get_type_name((*hw_config).device_type)); [INFO] [stdout] | ---------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `rstr` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:240:44 [INFO] [stdout] | [INFO] [stdout] 240 | if !hw_types.contains(&(*hw_config).device_type) { [INFO] [stdout] | ^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:245:24 [INFO] [stdout] | [INFO] [stdout] 245 | if (*hw_config).methods & hw_flag == hw_flag { [INFO] [stdout] | ^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_hwdevice_ctx_create` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:246:35 [INFO] [stdout] | [INFO] [stdout] 246 | let ret = av_hwdevice_ctx_create( [INFO] [stdout] | ___________________________________^ [INFO] [stdout] 247 | | &mut hw_buf_ref, [INFO] [stdout] 248 | | (*hw_config).device_type, [INFO] [stdout] 249 | | ptr::null_mut(), [INFO] [stdout] 250 | | ptr::null_mut(), [INFO] [stdout] 251 | | 0, [INFO] [stdout] 252 | | ); [INFO] [stdout] | |_________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:248:29 [INFO] [stdout] | [INFO] [stdout] 248 | ... (*hw_config).device_type, [INFO] [stdout] | ^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:261:25 [INFO] [stdout] | [INFO] [stdout] 261 | (*context).hw_device_ctx = av_buffer_ref(hw_buf_ref); [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_buffer_ref` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:261:52 [INFO] [stdout] | [INFO] [stdout] 261 | (*context).hw_device_ctx = av_buffer_ref(hw_buf_ref); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `decode::Decoder::decode_pkt_internal` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:283:25 [INFO] [stdout] | [INFO] [stdout] 283 | pkgs.extend(Self::decode_pkt_internal(ctx, ptr::null_mut())?); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/decode.rs:280:5 [INFO] [stdout] | [INFO] [stdout] 280 | pub unsafe fn flush(&mut self) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avcodec_send_packet` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:292:23 [INFO] [stdout] | [INFO] [stdout] 292 | let mut ret = avcodec_send_packet(ctx.context, pkt); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/decode.rs:288:5 [INFO] [stdout] | [INFO] [stdout] 288 | / pub unsafe fn decode_pkt_internal( [INFO] [stdout] 289 | | ctx: &DecoderCodecContext, [INFO] [stdout] 290 | | pkt: *mut AVPacket, [INFO] [stdout] 291 | | ) -> Result, Error> { [INFO] [stdout] | |________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_frame_alloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:297:29 [INFO] [stdout] | [INFO] [stdout] 297 | let mut frame = av_frame_alloc(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avcodec_receive_frame` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:298:19 [INFO] [stdout] | [INFO] [stdout] 298 | ret = avcodec_receive_frame(ctx.context, frame); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_frame_free` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:300:17 [INFO] [stdout] | [INFO] [stdout] 300 | av_frame_free(&mut frame); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `decode::Decoder::flush` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:316:20 [INFO] [stdout] | [INFO] [stdout] 316 | return self.flush(); [INFO] [stdout] | ^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/decode.rs:311:5 [INFO] [stdout] | [INFO] [stdout] 311 | / pub unsafe fn decode_pkt( [INFO] [stdout] 312 | | &mut self, [INFO] [stdout] 313 | | pkt: *mut AVPacket, [INFO] [stdout] 314 | | ) -> Result, Error> { [INFO] [stdout] | |________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:318:49 [INFO] [stdout] | [INFO] [stdout] 318 | if let Some(ctx) = self.codecs.get_mut(&(*pkt).stream_index) { [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `decode::Decoder::decode_pkt_internal` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:319:13 [INFO] [stdout] | [INFO] [stdout] 319 | Self::decode_pkt_internal(ctx, pkt) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_find_input_format` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:109:23 [INFO] [stdout] | [INFO] [stdout] 109 | let ret = av_find_input_format(fmt_str); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/demux.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 106 | unsafe fn open(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `libc::free` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:110:13 [INFO] [stdout] | [INFO] [stdout] 110 | libc::free(fmt_str as *mut libc::c_void); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avformat_open_input` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:122:27 [INFO] [stdout] | [INFO] [stdout] 122 | let ret = avformat_open_input(&mut self.ctx, input_cstr, format, ptr::null_mut()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `libc::free` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:123:17 [INFO] [stdout] | [INFO] [stdout] 123 | libc::free(input_cstr as *mut libc::c_void); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avio_alloc_context` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:129:26 [INFO] [stdout] | [INFO] [stdout] 129 | let pb = avio_alloc_context( [INFO] [stdout] | __________________________^ [INFO] [stdout] 130 | | av_mallocz(self.buffer_size) as *mut _, [INFO] [stdout] 131 | | self.buffer_size as _, [INFO] [stdout] 132 | | 0, [INFO] [stdout] ... | [INFO] [stdout] 136 | | None, [INFO] [stdout] 137 | | ); [INFO] [stdout] | |_________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_mallocz` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:130:21 [INFO] [stdout] | [INFO] [stdout] 130 | av_mallocz(self.buffer_size) as *mut _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:142:17 [INFO] [stdout] | [INFO] [stdout] 142 | (*self.ctx).pb = pb; [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avformat_open_input` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:148:27 [INFO] [stdout] | [INFO] [stdout] 148 | let ret = avformat_open_input(&mut self.ctx, url_cstr, format, ptr::null_mut()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `libc::free` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:150:21 [INFO] [stdout] | [INFO] [stdout] 150 | libc::free(url_cstr as *mut libc::c_void); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `demux::Demuxer::open` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:159:9 [INFO] [stdout] | [INFO] [stdout] 159 | self.open()?; [INFO] [stdout] | ^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/demux.rs:158:5 [INFO] [stdout] | [INFO] [stdout] 158 | pub unsafe fn probe_input(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avformat_find_stream_info` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:160:12 [INFO] [stdout] | [INFO] [stdout] 160 | if avformat_find_stream_info(self.ctx, ptr::null_mut()) < 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:198:26 [INFO] [stdout] | [INFO] [stdout] 198 | while n_stream < (*self.ctx).nb_streams as usize { [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:199:26 [INFO] [stdout] | [INFO] [stdout] 199 | let stream = *(*self.ctx).streams.add(n_stream); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:199:27 [INFO] [stdout] | [INFO] [stdout] 199 | let stream = *(*self.ctx).streams.add(n_stream); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:199:27 [INFO] [stdout] | [INFO] [stdout] 199 | let stream = *(*self.ctx).streams.add(n_stream); [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_dict_get` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:202:24 [INFO] [stdout] | [INFO] [stdout] 202 | let lang = av_dict_get((*stream).metadata, lang_key, ptr::null_mut(), 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:202:36 [INFO] [stdout] | [INFO] [stdout] 202 | let lang = av_dict_get((*stream).metadata, lang_key, ptr::null_mut(), 0); [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `libc::free` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:203:13 [INFO] [stdout] | [INFO] [stdout] 203 | libc::free(lang_key as *mut libc::c_void); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:207:23 [INFO] [stdout] | [INFO] [stdout] 207 | rstr!((*lang).value).to_string() [INFO] [stdout] | ^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | core::ffi::CStr::from_ptr($str).to_str().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/demux.rs:207:17 [INFO] [stdout] | [INFO] [stdout] 207 | rstr!((*lang).value).to_string() [INFO] [stdout] | -------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `rstr` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_q2d` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:209:21 [INFO] [stdout] | [INFO] [stdout] 209 | let q = av_q2d((*stream).time_base); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:209:28 [INFO] [stdout] | [INFO] [stdout] 209 | let q = av_q2d((*stream).time_base); [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:210:19 [INFO] [stdout] | [INFO] [stdout] 210 | match (*(*stream).codecpar).codec_type { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:210:21 [INFO] [stdout] | [INFO] [stdout] 210 | match (*(*stream).codecpar).codec_type { [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:214:32 [INFO] [stdout] | [INFO] [stdout] 214 | index: (*stream).index as _, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:215:32 [INFO] [stdout] | [INFO] [stdout] 215 | codec: (*(*stream).codecpar).codec_id as _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:215:34 [INFO] [stdout] | [INFO] [stdout] 215 | codec: (*(*stream).codecpar).codec_id as _, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:217:32 [INFO] [stdout] | [INFO] [stdout] 217 | width: (*(*stream).codecpar).width as _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:217:34 [INFO] [stdout] | [INFO] [stdout] 217 | width: (*(*stream).codecpar).width as _, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:218:33 [INFO] [stdout] | [INFO] [stdout] 218 | height: (*(*stream).codecpar).height as _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:218:35 [INFO] [stdout] | [INFO] [stdout] 218 | height: (*(*stream).codecpar).height as _, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_q2d` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:219:30 [INFO] [stdout] | [INFO] [stdout] 219 | fps: av_q2d((*stream).avg_frame_rate) as _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:219:37 [INFO] [stdout] | [INFO] [stdout] 219 | fps: av_q2d((*stream).avg_frame_rate) as _, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:220:33 [INFO] [stdout] | [INFO] [stdout] 220 | format: (*(*stream).codecpar).format as _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:220:35 [INFO] [stdout] | [INFO] [stdout] 220 | format: (*(*stream).codecpar).format as _, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:223:38 [INFO] [stdout] | [INFO] [stdout] 223 | start_time: ((*stream).start_time as f64 * q) as f32, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:230:32 [INFO] [stdout] | [INFO] [stdout] 230 | index: (*stream).index as _, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:231:32 [INFO] [stdout] | [INFO] [stdout] 231 | codec: (*(*stream).codecpar).codec_id as _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:231:34 [INFO] [stdout] | [INFO] [stdout] 231 | codec: (*(*stream).codecpar).codec_id as _, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:233:32 [INFO] [stdout] | [INFO] [stdout] 233 | width: (*(*stream).codecpar).width as _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:233:34 [INFO] [stdout] | [INFO] [stdout] 233 | width: (*(*stream).codecpar).width as _, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:234:33 [INFO] [stdout] | [INFO] [stdout] 234 | height: (*(*stream).codecpar).height as _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:234:35 [INFO] [stdout] | [INFO] [stdout] 234 | height: (*(*stream).codecpar).height as _, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:236:33 [INFO] [stdout] | [INFO] [stdout] 236 | format: (*(*stream).codecpar).format as _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:236:35 [INFO] [stdout] | [INFO] [stdout] 236 | format: (*(*stream).codecpar).format as _, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:237:38 [INFO] [stdout] | [INFO] [stdout] 237 | sample_rate: (*(*stream).codecpar).sample_rate as _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:237:40 [INFO] [stdout] | [INFO] [stdout] 237 | sample_rate: (*(*stream).codecpar).sample_rate as _, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:238:35 [INFO] [stdout] | [INFO] [stdout] 238 | channels: (*(*stream).codecpar).ch_layout.nb_channels as _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:238:37 [INFO] [stdout] | [INFO] [stdout] 238 | channels: (*(*stream).codecpar).ch_layout.nb_channels as _, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:239:38 [INFO] [stdout] | [INFO] [stdout] 239 | start_time: ((*stream).start_time as f64 * q) as f32, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:246:32 [INFO] [stdout] | [INFO] [stdout] 246 | index: (*stream).index as _, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:247:32 [INFO] [stdout] | [INFO] [stdout] 247 | codec: (*(*stream).codecpar).codec_id as _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:247:34 [INFO] [stdout] | [INFO] [stdout] 247 | codec: (*(*stream).codecpar).codec_id as _, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:255:38 [INFO] [stdout] | [INFO] [stdout] 255 | start_time: ((*stream).start_time as f64 * q) as f32, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:266:23 [INFO] [stdout] | [INFO] [stdout] 266 | duration: (*self.ctx).duration as f32 / AV_TIME_BASE as f32, [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:267:22 [INFO] [stdout] | [INFO] [stdout] 267 | bitrate: (*self.ctx).bit_rate as usize, [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:268:27 [INFO] [stdout] | [INFO] [stdout] 268 | format: rstr!((*(*self.ctx).iformat).name).to_string(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:268:29 [INFO] [stdout] | [INFO] [stdout] 268 | format: rstr!((*(*self.ctx).iformat).name).to_string(), [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | core::ffi::CStr::from_ptr($str).to_str().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/demux.rs:268:21 [INFO] [stdout] | [INFO] [stdout] 268 | format: rstr!((*(*self.ctx).iformat).name).to_string(), [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `rstr` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:269:31 [INFO] [stdout] | [INFO] [stdout] 269 | mime_types: rstr!((*(*self.ctx).iformat).mime_type).to_string(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:269:33 [INFO] [stdout] | [INFO] [stdout] 269 | mime_types: rstr!((*(*self.ctx).iformat).mime_type).to_string(), [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | core::ffi::CStr::from_ptr($str).to_str().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/demux.rs:269:25 [INFO] [stdout] | [INFO] [stdout] 269 | mime_types: rstr!((*(*self.ctx).iformat).mime_type).to_string(), [INFO] [stdout] | --------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `rstr` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_packet_alloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:278:23 [INFO] [stdout] | [INFO] [stdout] 278 | let mut pkt = av_packet_alloc(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/demux.rs:277:5 [INFO] [stdout] | [INFO] [stdout] 277 | pub unsafe fn get_packet(&mut self) -> Result<(*mut AVPacket, *mut AVStream), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_read_frame` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:279:19 [INFO] [stdout] | [INFO] [stdout] 279 | let ret = av_read_frame(self.ctx, pkt); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_packet_free` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:281:13 [INFO] [stdout] | [INFO] [stdout] 281 | av_packet_free(&mut pkt); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `demux::Demuxer::get_stream` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:286:22 [INFO] [stdout] | [INFO] [stdout] 286 | let stream = self.get_stream((*pkt).stream_index as _)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:286:38 [INFO] [stdout] | [INFO] [stdout] 286 | let stream = self.get_stream((*pkt).stream_index as _)?; [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:287:9 [INFO] [stdout] | [INFO] [stdout] 287 | (*pkt).time_base = (*stream).time_base; [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:287:28 [INFO] [stdout] | [INFO] [stdout] 287 | (*pkt).time_base = (*stream).time_base; [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:296:21 [INFO] [stdout] | [INFO] [stdout] 296 | if index >= (*self.ctx).nb_streams as _ { [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/demux.rs:292:5 [INFO] [stdout] | [INFO] [stdout] 292 | pub unsafe fn get_stream(&mut self, index: usize) -> Result<*mut AVStream, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:299:12 [INFO] [stdout] | [INFO] [stdout] 299 | Ok(*(*self.ctx).streams.add(index)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:299:13 [INFO] [stdout] | [INFO] [stdout] 299 | Ok(*(*self.ctx).streams.add(index)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:299:13 [INFO] [stdout] | [INFO] [stdout] 299 | Ok(*(*self.ctx).streams.add(index)) [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 111 | (*self.ctx).bit_rate = bitrate; [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/encode.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | pub unsafe fn with_bitrate(self, bitrate: i64) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:117:12 [INFO] [stdout] | [INFO] [stdout] 117 | if (*self.ctx).time_base.num != 1 || (*self.ctx).time_base.den != 1 { [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/encode.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | pub unsafe fn with_sample_rate(self, rate: i32) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:117:46 [INFO] [stdout] | [INFO] [stdout] 117 | if (*self.ctx).time_base.num != 1 || (*self.ctx).time_base.den != 1 { [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | (*self.ctx).sample_rate = rate; [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:121:9 [INFO] [stdout] | [INFO] [stdout] 121 | (*self.ctx).time_base = AVRational { num: 1, den: rate }; [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:127:9 [INFO] [stdout] | [INFO] [stdout] 127 | (*self.ctx).width = width; [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/encode.rs:126:5 [INFO] [stdout] | [INFO] [stdout] 126 | pub unsafe fn with_width(self, width: i32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 133 | (*self.ctx).height = height; [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/encode.rs:132:5 [INFO] [stdout] | [INFO] [stdout] 132 | pub unsafe fn with_height(self, height: i32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:139:9 [INFO] [stdout] | [INFO] [stdout] 139 | (*self.ctx).level = level; [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/encode.rs:138:5 [INFO] [stdout] | [INFO] [stdout] 138 | pub unsafe fn with_level(self, level: i32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | (*self.ctx).profile = profile; [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/encode.rs:144:5 [INFO] [stdout] | [INFO] [stdout] 144 | pub unsafe fn with_profile(self, profile: i32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:151:12 [INFO] [stdout] | [INFO] [stdout] 151 | if (*self.ctx).time_base.num != 1 || (*self.ctx).time_base.den != 1 { [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/encode.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 150 | pub unsafe fn with_framerate(self, fps: f32) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:151:46 [INFO] [stdout] | [INFO] [stdout] 151 | if (*self.ctx).time_base.num != 1 || (*self.ctx).time_base.den != 1 { [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_d2q` is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:154:17 [INFO] [stdout] | [INFO] [stdout] 154 | let q = av_d2q(fps as f64, 90_000); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:155:9 [INFO] [stdout] | [INFO] [stdout] 155 | (*self.ctx).framerate = q; [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:156:9 [INFO] [stdout] | [INFO] [stdout] 156 | (*self.ctx).time_base = av_inv_q(q); [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_inv_q` is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:156:33 [INFO] [stdout] | [INFO] [stdout] 156 | (*self.ctx).time_base = av_inv_q(q); [INFO] [stdout] | ^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:162:9 [INFO] [stdout] | [INFO] [stdout] 162 | (*self.ctx).pix_fmt = fmt; [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/encode.rs:161:5 [INFO] [stdout] | [INFO] [stdout] 161 | pub unsafe fn with_pix_fmt(self, fmt: AVPixelFormat) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:168:9 [INFO] [stdout] | [INFO] [stdout] 168 | (*self.ctx).sample_fmt = fmt; [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/encode.rs:167:5 [INFO] [stdout] | [INFO] [stdout] 167 | pub unsafe fn with_sample_format(self, fmt: AVSampleFormat) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:174:9 [INFO] [stdout] | [INFO] [stdout] 174 | (*self.ctx).ch_layout = layout; [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/encode.rs:173:5 [INFO] [stdout] | [INFO] [stdout] 173 | pub unsafe fn with_channel_layout(self, layout: AVChannelLayout) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_channel_layout_default` is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:181:9 [INFO] [stdout] | [INFO] [stdout] 181 | av_channel_layout_default(&mut layout, channels); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/encode.rs:179:5 [INFO] [stdout] | [INFO] [stdout] 179 | pub unsafe fn with_default_channel_layout(self, channels: i32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:182:9 [INFO] [stdout] | [INFO] [stdout] 182 | (*self.ctx).ch_layout = layout; [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `options_to_dict` is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:200:13 [INFO] [stdout] | [INFO] [stdout] 200 | options_to_dict(options)? [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/encode.rs:196:5 [INFO] [stdout] | [INFO] [stdout] 196 | pub unsafe fn open(self, options: Option>) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avcodec_open2` is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:204:19 [INFO] [stdout] | [INFO] [stdout] 204 | let ret = avcodec_open2(self.ctx, self.codec, &mut options); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:220:13 [INFO] [stdout] | [INFO] [stdout] 220 | (*frame).pict_type = AV_PICTURE_TYPE_NONE; [INFO] [stdout] | ^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/encode.rs:211:5 [INFO] [stdout] | [INFO] [stdout] 211 | / pub unsafe fn encode_frame( [INFO] [stdout] 212 | | &mut self, [INFO] [stdout] 213 | | frame: *mut AVFrame, [INFO] [stdout] 214 | | ) -> Result, Error> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avcodec_send_frame` is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:223:23 [INFO] [stdout] | [INFO] [stdout] 223 | let mut ret = avcodec_send_frame(self.ctx, frame); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_packet_alloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:229:27 [INFO] [stdout] | [INFO] [stdout] 229 | let mut pkt = av_packet_alloc(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avcodec_receive_packet` is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:230:19 [INFO] [stdout] | [INFO] [stdout] 230 | ret = avcodec_receive_packet(self.ctx, pkt); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_packet_free` is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:232:17 [INFO] [stdout] | [INFO] [stdout] 232 | av_packet_free(&mut pkt); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:238:13 [INFO] [stdout] | [INFO] [stdout] 238 | (*pkt).time_base = (*self.ctx).time_base; [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:238:32 [INFO] [stdout] | [INFO] [stdout] 238 | (*pkt).time_base = (*self.ctx).time_base; [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:239:16 [INFO] [stdout] | [INFO] [stdout] 239 | if (*pkt).duration == 0 { [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:240:17 [INFO] [stdout] | [INFO] [stdout] 240 | (*pkt).duration = 1; // Set duration to 1 for video packets (CFR) if not already set [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:243:17 [INFO] [stdout] | [INFO] [stdout] 243 | (*pkt).stream_index = idx; [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `encode::Encoder::encode_frame` is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:255:20 [INFO] [stdout] | [INFO] [stdout] 255 | for pkt in self.encode_frame(frame)? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/encode.rs:252:5 [INFO] [stdout] | [INFO] [stdout] 252 | pub unsafe fn save_picture(mut self, frame: *mut AVFrame, dst: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:256:29 [INFO] [stdout] | [INFO] [stdout] 256 | let pkt_slice = slice::from_raw_parts((*pkt).data, (*pkt).size as usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:256:51 [INFO] [stdout] | [INFO] [stdout] 256 | let pkt_slice = slice::from_raw_parts((*pkt).data, (*pkt).size as usize); [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:256:64 [INFO] [stdout] | [INFO] [stdout] 256 | let pkt_slice = slice::from_raw_parts((*pkt).data, (*pkt).size as usize); [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `encode::Encoder::encode_frame` is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:259:20 [INFO] [stdout] | [INFO] [stdout] 259 | for pkt in self.encode_frame(ptr::null_mut())? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:260:29 [INFO] [stdout] | [INFO] [stdout] 260 | let pkt_slice = slice::from_raw_parts((*pkt).data, (*pkt).size as usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:260:51 [INFO] [stdout] | [INFO] [stdout] 260 | let pkt_slice = slice::from_raw_parts((*pkt).data, (*pkt).size as usize); [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:260:64 [INFO] [stdout] | [INFO] [stdout] 260 | let pkt_slice = slice::from_raw_parts((*pkt).data, (*pkt).size as usize); [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avfilter_graph_alloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:33:19 [INFO] [stdout] | [INFO] [stdout] 33 | let ctx = avfilter_graph_alloc(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/filter.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub unsafe fn parse(graph: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avfilter_inout_alloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:34:22 [INFO] [stdout] | [INFO] [stdout] 34 | let inputs = avfilter_inout_alloc(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avfilter_inout_alloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:35:23 [INFO] [stdout] | [INFO] [stdout] 35 | let outputs = avfilter_inout_alloc(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avfilter_get_by_name` is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:36:19 [INFO] [stdout] | [INFO] [stdout] 36 | let src = avfilter_get_by_name(cstr!("buffer")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avfilter_get_by_name` is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:37:19 [INFO] [stdout] | [INFO] [stdout] 37 | let dst = avfilter_get_by_name(cstr!("buffersink")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avfilter_graph_create_filter` is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:40:19 [INFO] [stdout] | [INFO] [stdout] 40 | let ret = avfilter_graph_create_filter( [INFO] [stdout] | ___________________^ [INFO] [stdout] 41 | | &mut src_ctx, [INFO] [stdout] 42 | | src, [INFO] [stdout] 43 | | cstr!("in"), [INFO] [stdout] ... | [INFO] [stdout] 46 | | ctx, [INFO] [stdout] 47 | | ); [INFO] [stdout] | |_________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avfilter_graph_create_filter` is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:50:19 [INFO] [stdout] | [INFO] [stdout] 50 | let ret = avfilter_graph_create_filter( [INFO] [stdout] | ___________________^ [INFO] [stdout] 51 | | &mut dst_ctx, [INFO] [stdout] 52 | | dst, [INFO] [stdout] 53 | | cstr!("out"), [INFO] [stdout] ... | [INFO] [stdout] 56 | | ctx, [INFO] [stdout] 57 | | ); [INFO] [stdout] | |_________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | (*outputs).name = av_strdup((*dst).name); [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_strdup` is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:60:27 [INFO] [stdout] | [INFO] [stdout] 60 | (*outputs).name = av_strdup((*dst).name); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:60:37 [INFO] [stdout] | [INFO] [stdout] 60 | (*outputs).name = av_strdup((*dst).name); [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | (*outputs).filter_ctx = dst_ctx; [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | (*outputs).pad_idx = 0; [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | (*outputs).next = ptr::null_mut(); [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | (*inputs).name = av_strdup((*src).name); [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_strdup` is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:65:26 [INFO] [stdout] | [INFO] [stdout] 65 | (*inputs).name = av_strdup((*src).name); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:65:36 [INFO] [stdout] | [INFO] [stdout] 65 | (*inputs).name = av_strdup((*src).name); [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | (*inputs).filter_ctx = src_ctx; [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | (*inputs).pad_idx = 0; [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | (*inputs).next = ptr::null_mut(); [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avfilter_graph_parse` is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:70:19 [INFO] [stdout] | [INFO] [stdout] 70 | let ret = avfilter_graph_parse(ctx, cstr!(graph), inputs, outputs, ptr::null_mut()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `filter::Filter::build` is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | ret.build()?; [INFO] [stdout] | ^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avfilter_graph_dump` is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:102:23 [INFO] [stdout] | [INFO] [stdout] 102 | let d = rstr!(avfilter_graph_dump(self.graph, ptr::null_mut())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/filter.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 101 | pub unsafe fn build(&mut self) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | core::ffi::CStr::from_ptr($str).to_str().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/filter.rs:102:17 [INFO] [stdout] | [INFO] [stdout] 102 | let d = rstr!(avfilter_graph_dump(self.graph, ptr::null_mut())); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `rstr` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avfilter_graph_dump` is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:102:23 [INFO] [stdout] | [INFO] [stdout] 102 | let d = rstr!(avfilter_graph_dump(self.graph, ptr::null_mut())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avfilter_graph_config` is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:105:19 [INFO] [stdout] | [INFO] [stdout] 105 | let ret = avfilter_graph_config(self.graph, ptr::null_mut()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `slimbox::SlimMut::<'_, T>::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:29:38 [INFO] [stdout] | [INFO] [stdout] 29 | let mut writer: SlimMut<'_, T> = SlimMut::from_raw(opaque); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mux.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | / unsafe extern "C" fn write_data( [INFO] [stdout] 22 | | opaque: *mut libc::c_void, [INFO] [stdout] 23 | | buffer: WriteDataPtr, [INFO] [stdout] 24 | | size: libc::c_int, [INFO] [stdout] 25 | | ) -> libc::c_int [INFO] [stdout] 26 | | where [INFO] [stdout] 27 | | T: Write + 'static + ?Sized, [INFO] [stdout] | |________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:30:16 [INFO] [stdout] | [INFO] [stdout] 30 | let data = slice::from_raw_parts(buffer, size as usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `slimbox::SlimMut::<'_, T>::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:41:60 [INFO] [stdout] | [INFO] [stdout] 41 | let mut writer: SlimMut<'_, dyn WriteSeek + 'static> = SlimMut::from_raw(opaque); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mux.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 40 | unsafe extern "C" fn seek_data(opaque: *mut libc::c_void, offset: i64, whence: libc::c_int) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avformat_alloc_output_context2` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:144:19 [INFO] [stdout] | [INFO] [stdout] 144 | let ret = avformat_alloc_output_context2( [INFO] [stdout] | ___________________^ [INFO] [stdout] 145 | | ctx, [INFO] [stdout] 146 | | ptr::null_mut(), [INFO] [stdout] 147 | | if let Some(format) = format { [INFO] [stdout] ... | [INFO] [stdout] 156 | | }, [INFO] [stdout] 157 | | ); [INFO] [stdout] | |_________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mux.rs:135:5 [INFO] [stdout] | [INFO] [stdout] 135 | / unsafe fn init_ctx( [INFO] [stdout] 136 | | ctx: &mut *mut AVFormatContext, [INFO] [stdout] 137 | | dst: Option<&str>, [INFO] [stdout] 138 | | format: Option<&str>, [INFO] [stdout] 139 | | ) -> Result<()> { [INFO] [stdout] | |___________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:161:12 [INFO] [stdout] | [INFO] [stdout] 161 | if (*(**ctx).oformat).flags & AVFMT_GLOBALHEADER != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:161:14 [INFO] [stdout] | [INFO] [stdout] 161 | if (*(**ctx).oformat).flags & AVFMT_GLOBALHEADER != 0 { [INFO] [stdout] | ^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:162:13 [INFO] [stdout] | [INFO] [stdout] 162 | (**ctx).flags |= AV_CODEC_FLAG_GLOBAL_HEADER as libc::c_int; [INFO] [stdout] | ^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `mux::MuxerBuilder::init_ctx` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:173:9 [INFO] [stdout] | [INFO] [stdout] 173 | Self::init_ctx(&mut self.ctx, Some(path_str), format)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mux.rs:168:5 [INFO] [stdout] | [INFO] [stdout] 168 | / pub unsafe fn with_output_path<'a, T>(mut self, dst: T, format: Option<&'a str>) -> Result [INFO] [stdout] 169 | | where [INFO] [stdout] 170 | | T: Into<&'a str>, [INFO] [stdout] | |_________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `mux::MuxerBuilder::init_ctx` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:189:9 [INFO] [stdout] | [INFO] [stdout] 189 | Self::init_ctx(&mut self.ctx, None, format)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mux.rs:181:5 [INFO] [stdout] | [INFO] [stdout] 181 | / pub unsafe fn with_output_write_seek( [INFO] [stdout] 182 | | mut self, [INFO] [stdout] 183 | | writer: W, [INFO] [stdout] 184 | | format: Option<&str>, [INFO] [stdout] 185 | | ) -> Result [INFO] [stdout] 186 | | where [INFO] [stdout] 187 | | W: WriteSeek + 'static, [INFO] [stdout] | |_______________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `mux::MuxerBuilder::init_ctx` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:200:9 [INFO] [stdout] | [INFO] [stdout] 200 | Self::init_ctx(&mut self.ctx, None, format)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mux.rs:196:5 [INFO] [stdout] | [INFO] [stdout] 196 | / pub unsafe fn with_output_write(mut self, writer: W, format: Option<&str>) -> Result [INFO] [stdout] 197 | | where [INFO] [stdout] 198 | | W: Write + 'static, [INFO] [stdout] | |___________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `mux::MuxerBuilder::add_stream_from_encoder` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:207:9 [INFO] [stdout] | [INFO] [stdout] 207 | Self::add_stream_from_encoder(self.ctx, encoder)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mux.rs:206:5 [INFO] [stdout] | [INFO] [stdout] 206 | pub unsafe fn with_stream_encoder(self, encoder: &Encoder) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `mux::MuxerBuilder::add_copy_stream` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:213:9 [INFO] [stdout] | [INFO] [stdout] 213 | Self::add_copy_stream(self.ctx, in_stream)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mux.rs:212:5 [INFO] [stdout] | [INFO] [stdout] 212 | pub unsafe fn with_copy_stream(self, in_stream: *mut AVStream) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avformat_new_stream` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:246:22 [INFO] [stdout] | [INFO] [stdout] 246 | let stream = avformat_new_stream(ctx, encoder.codec()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mux.rs:239:5 [INFO] [stdout] | [INFO] [stdout] 239 | / pub unsafe fn add_stream_from_encoder( [INFO] [stdout] 240 | | ctx: *mut AVFormatContext, [INFO] [stdout] 241 | | encoder: &Encoder, [INFO] [stdout] 242 | | ) -> Result<*mut AVStream> { [INFO] [stdout] | |______________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avcodec_parameters_from_context` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:250:19 [INFO] [stdout] | [INFO] [stdout] 250 | let ret = avcodec_parameters_from_context((*stream).codecpar, encoder.codec_context()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:250:51 [INFO] [stdout] | [INFO] [stdout] 250 | let ret = avcodec_parameters_from_context((*stream).codecpar, encoder.codec_context()); [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:255:9 [INFO] [stdout] | [INFO] [stdout] 255 | (*stream).sample_aspect_ratio = (*encoder_ctx).sample_aspect_ratio; [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:255:41 [INFO] [stdout] | [INFO] [stdout] 255 | (*stream).sample_aspect_ratio = (*encoder_ctx).sample_aspect_ratio; [INFO] [stdout] | ^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:256:9 [INFO] [stdout] | [INFO] [stdout] 256 | (*stream).time_base = (*encoder_ctx).time_base; [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:256:31 [INFO] [stdout] | [INFO] [stdout] 256 | (*stream).time_base = (*encoder_ctx).time_base; [INFO] [stdout] | ^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avformat_new_stream` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:268:22 [INFO] [stdout] | [INFO] [stdout] 268 | let stream = avformat_new_stream(ctx, ptr::null_mut()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mux.rs:261:5 [INFO] [stdout] | [INFO] [stdout] 261 | / pub(crate) unsafe fn add_copy_stream( [INFO] [stdout] 262 | | ctx: *mut AVFormatContext, [INFO] [stdout] 263 | | in_stream: *mut AVStream, [INFO] [stdout] 264 | | ) -> Result<*mut AVStream> { [INFO] [stdout] | |______________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avcodec_parameters_copy` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:274:19 [INFO] [stdout] | [INFO] [stdout] 274 | let ret = avcodec_parameters_copy((*stream).codecpar, (*in_stream).codecpar); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:274:43 [INFO] [stdout] | [INFO] [stdout] 274 | let ret = avcodec_parameters_copy((*stream).codecpar, (*in_stream).codecpar); [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:274:63 [INFO] [stdout] | [INFO] [stdout] 274 | let ret = avcodec_parameters_copy((*stream).codecpar, (*in_stream).codecpar); [INFO] [stdout] | ^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:278:9 [INFO] [stdout] | [INFO] [stdout] 278 | (*stream).time_base = (*in_stream).time_base; [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:278:31 [INFO] [stdout] | [INFO] [stdout] 278 | (*stream).time_base = (*in_stream).time_base; [INFO] [stdout] | ^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:279:9 [INFO] [stdout] | [INFO] [stdout] 279 | (*in_stream).sample_aspect_ratio = (*stream).sample_aspect_ratio; [INFO] [stdout] | ^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:279:44 [INFO] [stdout] | [INFO] [stdout] 279 | (*in_stream).sample_aspect_ratio = (*stream).sample_aspect_ratio; [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `mux::MuxerBuilder::add_stream_from_encoder` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:292:9 [INFO] [stdout] | [INFO] [stdout] 292 | MuxerBuilder::add_stream_from_encoder(self.ctx, encoder) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mux.rs:291:5 [INFO] [stdout] | [INFO] [stdout] 291 | pub unsafe fn add_stream_encoder(&mut self, encoder: &Encoder) -> Result<*mut AVStream> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `mux::MuxerBuilder::add_copy_stream` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:297:9 [INFO] [stdout] | [INFO] [stdout] 297 | MuxerBuilder::add_copy_stream(self.ctx, in_stream) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mux.rs:296:5 [INFO] [stdout] | [INFO] [stdout] 296 | pub unsafe fn add_copy_stream(&mut self, in_stream: *mut AVStream) -> Result<*mut AVStream> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `mux::MuxerBuilder::init_ctx` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:302:9 [INFO] [stdout] | [INFO] [stdout] 302 | MuxerBuilder::init_ctx(&mut self.ctx, self.url.as_deref(), self.format.as_deref()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mux.rs:301:5 [INFO] [stdout] | [INFO] [stdout] 301 | pub unsafe fn init(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:327:22 [INFO] [stdout] | [INFO] [stdout] 327 | set_opts((*self.ctx).priv_data, opts)?; [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mux.rs:324:5 [INFO] [stdout] | [INFO] [stdout] 324 | pub unsafe fn open(&mut self, options: Option>) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:330:12 [INFO] [stdout] | [INFO] [stdout] 330 | if (*(*self.ctx).oformat).flags & AVFMT_NOFILE == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:330:14 [INFO] [stdout] | [INFO] [stdout] 330 | if (*(*self.ctx).oformat).flags & AVFMT_NOFILE == 0 { [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:331:13 [INFO] [stdout] | [INFO] [stdout] 331 | (*self.ctx).pb = (&mut self.output).try_into()?; [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:333:16 [INFO] [stdout] | [INFO] [stdout] 333 | if (*self.ctx).pb.is_null() { [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avio_open` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:334:27 [INFO] [stdout] | [INFO] [stdout] 334 | let ret = avio_open(&mut (*self.ctx).pb, (*self.ctx).url, AVIO_FLAG_WRITE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:334:42 [INFO] [stdout] | [INFO] [stdout] 334 | let ret = avio_open(&mut (*self.ctx).pb, (*self.ctx).url, AVIO_FLAG_WRITE); [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:334:58 [INFO] [stdout] | [INFO] [stdout] 334 | let ret = avio_open(&mut (*self.ctx).pb, (*self.ctx).url, AVIO_FLAG_WRITE); [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:338:17 [INFO] [stdout] | [INFO] [stdout] 338 | (*self.ctx).flags |= AVIO_FLAG_DIRECT; [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avformat_write_header` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:342:19 [INFO] [stdout] | [INFO] [stdout] 342 | let ret = avformat_write_header(self.ctx, ptr::null_mut()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:355:22 [INFO] [stdout] | [INFO] [stdout] 355 | let stream = *(*self.ctx).streams.add((*pkt).stream_index as usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mux.rs:354:5 [INFO] [stdout] | [INFO] [stdout] 354 | pub unsafe fn write_packet(&mut self, pkt: *mut AVPacket) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:355:23 [INFO] [stdout] | [INFO] [stdout] 355 | let stream = *(*self.ctx).streams.add((*pkt).stream_index as usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:355:23 [INFO] [stdout] | [INFO] [stdout] 355 | let stream = *(*self.ctx).streams.add((*pkt).stream_index as usize); [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:355:47 [INFO] [stdout] | [INFO] [stdout] 355 | let stream = *(*self.ctx).streams.add((*pkt).stream_index as usize); [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_packet_rescale_ts` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:356:9 [INFO] [stdout] | [INFO] [stdout] 356 | av_packet_rescale_ts(pkt, (*pkt).time_base, (*stream).time_base); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:356:35 [INFO] [stdout] | [INFO] [stdout] 356 | av_packet_rescale_ts(pkt, (*pkt).time_base, (*stream).time_base); [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:356:53 [INFO] [stdout] | [INFO] [stdout] 356 | av_packet_rescale_ts(pkt, (*pkt).time_base, (*stream).time_base); [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:357:9 [INFO] [stdout] | [INFO] [stdout] 357 | (*pkt).time_base = (*stream).time_base; [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:357:28 [INFO] [stdout] | [INFO] [stdout] 357 | (*pkt).time_base = (*stream).time_base; [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_interleaved_write_frame` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:359:19 [INFO] [stdout] | [INFO] [stdout] 359 | let ret = av_interleaved_write_frame(self.ctx, pkt); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_write_trailer` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:367:19 [INFO] [stdout] | [INFO] [stdout] 367 | let ret = av_write_trailer(self.ctx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mux.rs:366:5 [INFO] [stdout] | [INFO] [stdout] 366 | pub unsafe fn close(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `mux::Muxer::free_ctx` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:369:9 [INFO] [stdout] | [INFO] [stdout] 369 | self.free_ctx()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:377:25 [INFO] [stdout] | [INFO] [stdout] 377 | if !(*self.ctx).pb.is_null() { [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mux.rs:373:5 [INFO] [stdout] | [INFO] [stdout] 373 | unsafe fn free_ctx(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avio_close` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:378:35 [INFO] [stdout] | [INFO] [stdout] 378 | let ret = avio_close((*self.ctx).pb); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:378:46 [INFO] [stdout] | [INFO] [stdout] 378 | let ret = avio_close((*self.ctx).pb); [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_free` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:383:21 [INFO] [stdout] | [INFO] [stdout] 383 | av_free((*(*self.ctx).pb).buffer as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:383:29 [INFO] [stdout] | [INFO] [stdout] 383 | av_free((*(*self.ctx).pb).buffer as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:383:31 [INFO] [stdout] | [INFO] [stdout] 383 | av_free((*(*self.ctx).pb).buffer as *mut _); [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `slimbox::SlimBox::::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:384:26 [INFO] [stdout] | [INFO] [stdout] 384 | drop(SlimBox::::from_raw((*(*self.ctx).pb).opaque)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:384:61 [INFO] [stdout] | [INFO] [stdout] 384 | drop(SlimBox::::from_raw((*(*self.ctx).pb).opaque)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:384:63 [INFO] [stdout] | [INFO] [stdout] 384 | drop(SlimBox::::from_raw((*(*self.ctx).pb).opaque)); [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avio_context_free` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:385:21 [INFO] [stdout] | [INFO] [stdout] 385 | avio_context_free(&mut (*self.ctx).pb); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:385:44 [INFO] [stdout] | [INFO] [stdout] 385 | avio_context_free(&mut (*self.ctx).pb); [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_free` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:388:21 [INFO] [stdout] | [INFO] [stdout] 388 | av_free((*(*self.ctx).pb).buffer as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:388:29 [INFO] [stdout] | [INFO] [stdout] 388 | av_free((*(*self.ctx).pb).buffer as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:388:31 [INFO] [stdout] | [INFO] [stdout] 388 | av_free((*(*self.ctx).pb).buffer as *mut _); [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `slimbox::SlimBox::::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:389:26 [INFO] [stdout] | [INFO] [stdout] 389 | drop(SlimBox::::from_raw((*(*self.ctx).pb).opaque)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:389:57 [INFO] [stdout] | [INFO] [stdout] 389 | drop(SlimBox::::from_raw((*(*self.ctx).pb).opaque)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:389:59 [INFO] [stdout] | [INFO] [stdout] 389 | drop(SlimBox::::from_raw((*(*self.ctx).pb).opaque)); [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avio_context_free` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:390:21 [INFO] [stdout] | [INFO] [stdout] 390 | avio_context_free(&mut (*self.ctx).pb); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:390:44 [INFO] [stdout] | [INFO] [stdout] 390 | avio_context_free(&mut (*self.ctx).pb); [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avformat_free_context` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:393:13 [INFO] [stdout] | [INFO] [stdout] 393 | avformat_free_context(self.ctx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_channel_layout_default` is unsafe and requires unsafe block [INFO] [stdout] --> src/resample.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | av_channel_layout_default(&mut layout, self.channels as libc::c_int); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/resample.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | unsafe fn setup_swr(&mut self, frame: *mut AVFrame) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::swr_alloc_set_opts2` is unsafe and requires unsafe block [INFO] [stdout] --> src/resample.rs:45:19 [INFO] [stdout] | [INFO] [stdout] 45 | let ret = swr_alloc_set_opts2( [INFO] [stdout] | ___________________^ [INFO] [stdout] 46 | | &mut self.ctx, [INFO] [stdout] 47 | | ptr::addr_of_mut!(layout), [INFO] [stdout] 48 | | self.format, [INFO] [stdout] ... | [INFO] [stdout] 54 | | ptr::null_mut(), [INFO] [stdout] 55 | | ); [INFO] [stdout] | |_________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/resample.rs:50:31 [INFO] [stdout] | [INFO] [stdout] 50 | ptr::addr_of_mut!((*frame).ch_layout), [INFO] [stdout] | ^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/resample.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | transmute((*frame).format), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/resample.rs:51:23 [INFO] [stdout] | [INFO] [stdout] 51 | transmute((*frame).format), [INFO] [stdout] | ^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/resample.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | (*frame).sample_rate, [INFO] [stdout] | ^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::swr_init` is unsafe and requires unsafe block [INFO] [stdout] --> src/resample.rs:58:19 [INFO] [stdout] | [INFO] [stdout] 58 | let ret = swr_init(self.ctx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/resample.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | if !(*frame).hw_frames_ctx.is_null() { [INFO] [stdout] | ^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/resample.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | pub unsafe fn process_frame(&mut self, frame: *mut AVFrame) -> Result<*mut AVFrame, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `resample::Resample::setup_swr` is unsafe and requires unsafe block [INFO] [stdout] --> src/resample.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | self.setup_swr(frame)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_frame_alloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/resample.rs:71:29 [INFO] [stdout] | [INFO] [stdout] 71 | let mut out_frame = av_frame_alloc(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_frame_copy_props` is unsafe and requires unsafe block [INFO] [stdout] --> src/resample.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | av_frame_copy_props(out_frame, frame); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/resample.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | (*out_frame).sample_rate = self.sample_rate as libc::c_int; [INFO] [stdout] | ^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/resample.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | (*out_frame).format = transmute(self.format); [INFO] [stdout] | ^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/resample.rs:74:31 [INFO] [stdout] | [INFO] [stdout] 74 | (*out_frame).format = transmute(self.format); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_channel_layout_default` is unsafe and requires unsafe block [INFO] [stdout] --> src/resample.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | av_channel_layout_default(&mut (*out_frame).ch_layout, self.channels as libc::c_int); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/resample.rs:75:40 [INFO] [stdout] | [INFO] [stdout] 75 | av_channel_layout_default(&mut (*out_frame).ch_layout, self.channels as libc::c_int); [INFO] [stdout] | ^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::swr_convert_frame` is unsafe and requires unsafe block [INFO] [stdout] --> src/resample.rs:77:19 [INFO] [stdout] | [INFO] [stdout] 77 | let ret = swr_convert_frame(self.ctx, out_frame, frame); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_frame_free` is unsafe and requires unsafe block [INFO] [stdout] --> src/resample.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | av_frame_free(&mut out_frame); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::sws_freeContext` is unsafe and requires unsafe block [INFO] [stdout] --> src/scale.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | sws_freeContext(self.ctx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/scale.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | / unsafe fn setup_scaler( [INFO] [stdout] 46 | | &mut self, [INFO] [stdout] 47 | | frame: *const AVFrame, [INFO] [stdout] 48 | | width: u16, [INFO] [stdout] 49 | | height: u16, [INFO] [stdout] 50 | | format: AVPixelFormat, [INFO] [stdout] 51 | | ) -> Result<(), Error> { [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::sws_getContext` is unsafe and requires unsafe block [INFO] [stdout] --> src/scale.rs:66:20 [INFO] [stdout] | [INFO] [stdout] 66 | self.ctx = sws_getContext( [INFO] [stdout] | ____________________^ [INFO] [stdout] 67 | | (*frame).width, [INFO] [stdout] 68 | | (*frame).height, [INFO] [stdout] 69 | | transmute((*frame).format), [INFO] [stdout] ... | [INFO] [stdout] 76 | | ptr::null_mut(), [INFO] [stdout] 77 | | ); [INFO] [stdout] | |_________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/scale.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | (*frame).width, [INFO] [stdout] | ^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/scale.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 68 | (*frame).height, [INFO] [stdout] | ^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/scale.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | transmute((*frame).format), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/scale.rs:69:23 [INFO] [stdout] | [INFO] [stdout] 69 | transmute((*frame).format), [INFO] [stdout] | ^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/scale.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | transmute(format), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/scale.rs:84:13 [INFO] [stdout] | [INFO] [stdout] 84 | (*frame).width, [INFO] [stdout] | ^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/scale.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | (*frame).height, [INFO] [stdout] | ^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_get_pix_fmt_name` is unsafe and requires unsafe block [INFO] [stdout] --> src/scale.rs:86:19 [INFO] [stdout] | [INFO] [stdout] 86 | rstr!(av_get_pix_fmt_name(transmute((*frame).format))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/scale.rs:86:39 [INFO] [stdout] | [INFO] [stdout] 86 | rstr!(av_get_pix_fmt_name(transmute((*frame).format))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/scale.rs:86:49 [INFO] [stdout] | [INFO] [stdout] 86 | rstr!(av_get_pix_fmt_name(transmute((*frame).format))), [INFO] [stdout] | ^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | core::ffi::CStr::from_ptr($str).to_str().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/scale.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | rstr!(av_get_pix_fmt_name(transmute((*frame).format))), [INFO] [stdout] | ------------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `rstr` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_get_pix_fmt_name` is unsafe and requires unsafe block [INFO] [stdout] --> src/scale.rs:89:19 [INFO] [stdout] | [INFO] [stdout] 89 | rstr!(av_get_pix_fmt_name(format)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | core::ffi::CStr::from_ptr($str).to_str().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/scale.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | rstr!(av_get_pix_fmt_name(format)) [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `rstr` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/scale.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 105 | if !(*frame).hw_frames_ctx.is_null() { [INFO] [stdout] | ^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/scale.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 98 | / pub unsafe fn process_frame( [INFO] [stdout] 99 | | &mut self, [INFO] [stdout] 100 | | frame: *mut AVFrame, [INFO] [stdout] 101 | | width: u16, [INFO] [stdout] 102 | | height: u16, [INFO] [stdout] 103 | | format: AVPixelFormat, [INFO] [stdout] 104 | | ) -> Result<*mut AVFrame, Error> { [INFO] [stdout] | |____________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `scale::Scaler::setup_scaler` is unsafe and requires unsafe block [INFO] [stdout] --> src/scale.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 109 | self.setup_scaler(frame, width, height, format)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_frame_alloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/scale.rs:111:29 [INFO] [stdout] | [INFO] [stdout] 111 | let mut dst_frame = av_frame_alloc(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_frame_copy_props` is unsafe and requires unsafe block [INFO] [stdout] --> src/scale.rs:112:19 [INFO] [stdout] | [INFO] [stdout] 112 | let ret = av_frame_copy_props(dst_frame, frame); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_frame_free` is unsafe and requires unsafe block [INFO] [stdout] --> src/scale.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | av_frame_free(&mut dst_frame); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::sws_scale_frame` is unsafe and requires unsafe block [INFO] [stdout] --> src/scale.rs:117:19 [INFO] [stdout] | [INFO] [stdout] 117 | let ret = sws_scale_frame(self.ctx, dst_frame, frame); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_frame_free` is unsafe and requires unsafe block [INFO] [stdout] --> src/scale.rs:119:13 [INFO] [stdout] | [INFO] [stdout] 119 | av_frame_free(&mut dst_frame); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/stream_info.rs:54:15 [INFO] [stdout] | [INFO] [stdout] 54 | match (*(*stream).codecpar).codec_type { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/stream_info.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | pub unsafe fn is_best_stream(&self, stream: *mut AVStream) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/stream_info.rs:54:17 [INFO] [stdout] | [INFO] [stdout] 54 | match (*(*stream).codecpar).codec_type { [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/stream_info.rs:56:17 [INFO] [stdout] | [INFO] [stdout] 56 | (*stream).index == self.best_video().map_or(usize::MAX, |r| r.index) as libc::c_int [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/stream_info.rs:59:17 [INFO] [stdout] | [INFO] [stdout] 59 | (*stream).index == self.best_audio().map_or(usize::MAX, |r| r.index) as libc::c_int [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/stream_info.rs:62:17 [INFO] [stdout] | [INFO] [stdout] 62 | (*stream).index [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `mux::MuxerBuilder::with_output_path` is unsafe and requires unsafe block [INFO] [stdout] --> src/transcode.rs:23:21 [INFO] [stdout] | [INFO] [stdout] 23 | let muxer = Muxer::builder().with_output_path(output, None)?.build()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/transcode.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub unsafe fn new(input: &str, output: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `demux::Demuxer::probe_input` is unsafe and requires unsafe block [INFO] [stdout] --> src/transcode.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | self.demuxer.probe_input() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/transcode.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | pub unsafe fn prepare(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `mux::Muxer::add_stream_encoder` is unsafe and requires unsafe block [INFO] [stdout] --> src/transcode.rs:62:26 [INFO] [stdout] | [INFO] [stdout] 62 | let dst_stream = self.muxer.add_stream_encoder(&encoder_out)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/transcode.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | / pub unsafe fn transcode_stream( [INFO] [stdout] 57 | | &mut self, [INFO] [stdout] 58 | | in_stream: &StreamInfo, [INFO] [stdout] 59 | | encoder_out: Encoder, [INFO] [stdout] 60 | | ) -> Result<()> { [INFO] [stdout] | |___________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/transcode.rs:67:36 [INFO] [stdout] | [INFO] [stdout] 67 | && (in_stream.width != (*out_ctx).width as usize [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/transcode.rs:68:40 [INFO] [stdout] | [INFO] [stdout] 68 | || in_stream.height != (*out_ctx).height as usize [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/transcode.rs:69:40 [INFO] [stdout] | [INFO] [stdout] 69 | || in_stream.format != (*out_ctx).pix_fmt as isize) [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/transcode.rs:76:37 [INFO] [stdout] | [INFO] [stdout] 76 | && (in_stream.format != (*out_ctx).sample_fmt as isize [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/transcode.rs:77:45 [INFO] [stdout] | [INFO] [stdout] 77 | || in_stream.sample_rate != (*out_ctx).sample_rate as usize) [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/transcode.rs:80:17 [INFO] [stdout] | [INFO] [stdout] 80 | (*out_ctx).sample_fmt, [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/transcode.rs:81:17 [INFO] [stdout] | [INFO] [stdout] 81 | (*out_ctx).sample_rate as u32, [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/transcode.rs:82:17 [INFO] [stdout] | [INFO] [stdout] 82 | (*out_ctx).ch_layout.nb_channels as usize, [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `encode::Encoder::with_stream_index` is unsafe and requires unsafe block [INFO] [stdout] --> src/transcode.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | encoder_out.with_stream_index((*dst_stream).index), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/transcode.rs:90:43 [INFO] [stdout] | [INFO] [stdout] 90 | encoder_out.with_stream_index((*dst_stream).index), [INFO] [stdout] | ^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `mux::Muxer::add_copy_stream` is unsafe and requires unsafe block [INFO] [stdout] --> src/transcode.rs:101:26 [INFO] [stdout] | [INFO] [stdout] 101 | let dst_stream = self.muxer.add_copy_stream(in_stream.stream)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/transcode.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 100 | pub unsafe fn copy_stream(&mut self, in_stream: StreamInfo) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/transcode.rs:103:45 [INFO] [stdout] | [INFO] [stdout] 103 | .insert(in_stream.index as i32, (*dst_stream).index); [INFO] [stdout] | ^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `demux::Demuxer::get_packet` is unsafe and requires unsafe block [INFO] [stdout] --> src/transcode.rs:109:33 [INFO] [stdout] | [INFO] [stdout] 109 | let (mut pkt, stream) = self.demuxer.get_packet()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/transcode.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 108 | unsafe fn next(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `encode::Encoder::encode_frame` is unsafe and requires unsafe block [INFO] [stdout] --> src/transcode.rs:114:36 [INFO] [stdout] | [INFO] [stdout] 114 | for mut new_pkt in enc.encode_frame(ptr::null_mut())? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `mux::Muxer::write_packet` is unsafe and requires unsafe block [INFO] [stdout] --> src/transcode.rs:115:21 [INFO] [stdout] | [INFO] [stdout] 115 | self.muxer.write_packet(new_pkt)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_packet_free` is unsafe and requires unsafe block [INFO] [stdout] --> src/transcode.rs:116:21 [INFO] [stdout] | [INFO] [stdout] 116 | av_packet_free(&mut new_pkt); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/transcode.rs:121:29 [INFO] [stdout] | [INFO] [stdout] 121 | let src_index = (*stream).index; [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `decode::Decoder::decode_pkt` is unsafe and requires unsafe block [INFO] [stdout] --> src/transcode.rs:124:45 [INFO] [stdout] | [INFO] [stdout] 124 | for (mut frame, _stream) in self.decoder.decode_pkt(pkt)? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `scale::Scaler::process_frame` is unsafe and requires unsafe block [INFO] [stdout] --> src/transcode.rs:128:41 [INFO] [stdout] | [INFO] [stdout] 128 | let new_frame = sws.process_frame( [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 129 | | frame, [INFO] [stdout] 130 | | (*enc_ctx).width as u16, [INFO] [stdout] 131 | | (*enc_ctx).height as u16, [INFO] [stdout] 132 | | (*enc_ctx).pix_fmt, [INFO] [stdout] 133 | | )?; [INFO] [stdout] | |_________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/transcode.rs:130:29 [INFO] [stdout] | [INFO] [stdout] 130 | ... (*enc_ctx).width as u16, [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/transcode.rs:131:29 [INFO] [stdout] | [INFO] [stdout] 131 | ... (*enc_ctx).height as u16, [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/transcode.rs:132:29 [INFO] [stdout] | [INFO] [stdout] 132 | ... (*enc_ctx).pix_fmt, [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_frame_free` is unsafe and requires unsafe block [INFO] [stdout] --> src/transcode.rs:134:25 [INFO] [stdout] | [INFO] [stdout] 134 | av_frame_free(&mut frame); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `resample::Resample::process_frame` is unsafe and requires unsafe block [INFO] [stdout] --> src/transcode.rs:142:25 [INFO] [stdout] | [INFO] [stdout] 142 | swr.process_frame(frame)? [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `encode::Encoder::encode_frame` is unsafe and requires unsafe block [INFO] [stdout] --> src/transcode.rs:148:40 [INFO] [stdout] | [INFO] [stdout] 148 | for mut new_pkt in enc.encode_frame(frame)? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `mux::Muxer::write_packet` is unsafe and requires unsafe block [INFO] [stdout] --> src/transcode.rs:149:25 [INFO] [stdout] | [INFO] [stdout] 149 | self.muxer.write_packet(new_pkt)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_packet_free` is unsafe and requires unsafe block [INFO] [stdout] --> src/transcode.rs:150:25 [INFO] [stdout] | [INFO] [stdout] 150 | av_packet_free(&mut new_pkt); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_frame_free` is unsafe and requires unsafe block [INFO] [stdout] --> src/transcode.rs:152:21 [INFO] [stdout] | [INFO] [stdout] 152 | av_frame_free(&mut frame); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/transcode.rs:156:17 [INFO] [stdout] | [INFO] [stdout] 156 | (*pkt).stream_index = *dst_stream; [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `mux::Muxer::write_packet` is unsafe and requires unsafe block [INFO] [stdout] --> src/transcode.rs:157:17 [INFO] [stdout] | [INFO] [stdout] 157 | self.muxer.write_packet(pkt)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_packet_free` is unsafe and requires unsafe block [INFO] [stdout] --> src/transcode.rs:160:13 [INFO] [stdout] | [INFO] [stdout] 160 | av_packet_free(&mut pkt); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `mux::Muxer::open` is unsafe and requires unsafe block [INFO] [stdout] --> src/transcode.rs:167:9 [INFO] [stdout] | [INFO] [stdout] 167 | self.muxer.open(mux_options)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/transcode.rs:166:5 [INFO] [stdout] | [INFO] [stdout] 166 | pub unsafe fn run(mut self, mux_options: Option>) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `transcode::Transcoder::next` is unsafe and requires unsafe block [INFO] [stdout] --> src/transcode.rs:168:16 [INFO] [stdout] | [INFO] [stdout] 168 | while !self.next()? { [INFO] [stdout] | ^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `mux::Muxer::close` is unsafe and requires unsafe block [INFO] [stdout] --> src/transcode.rs:171:9 [INFO] [stdout] | [INFO] [stdout] 171 | self.muxer.close()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | return (*frame).duration; [INFO] [stdout] | ^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/lib.rs:71:1 [INFO] [stdout] | [INFO] [stdout] 71 | pub unsafe fn get_frame_duration(frame: *mut AVFrame) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_log_format_line` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 111 | / av_log_format_line( [INFO] [stdout] 112 | | av_class, [INFO] [stdout] 113 | | level, [INFO] [stdout] 114 | | fmt, [INFO] [stdout] ... | [INFO] [stdout] 118 | | ptr::addr_of_mut!(prefix), [INFO] [stdout] 119 | | ); [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/lib.rs:93:1 [INFO] [stdout] | [INFO] [stdout] 93 | / pub unsafe extern "C" fn av_log_redirect( [INFO] [stdout] 94 | | av_class: *mut libc::c_void, [INFO] [stdout] 95 | | level: libc::c_int, [INFO] [stdout] 96 | | fmt: *const libc::c_char, [INFO] [stdout] 97 | | args: VaList, [INFO] [stdout] 98 | | ) { [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | core::ffi::CStr::from_ptr($str).to_str().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 120 | log!(target: "ffmpeg", log_level, "{}", rstr!(buf.as_ptr() as *const libc::c_char).trim()); [INFO] [stdout] | ------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `rstr` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_dict_set` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:139:19 [INFO] [stdout] | [INFO] [stdout] 139 | let ret = av_dict_set(&mut dict, key_cstr, value_cstr, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/lib.rs:134:1 [INFO] [stdout] | [INFO] [stdout] 134 | unsafe fn options_to_dict(options: HashMap) -> Result<*mut AVDictionary, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `libc::free` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:140:9 [INFO] [stdout] | [INFO] [stdout] 140 | libc::free(key_cstr as *mut libc::c_void); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `libc::free` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 141 | libc::free(value_cstr as *mut libc::c_void); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:203:8 [INFO] [stdout] | [INFO] [stdout] 203 | if (*frame).hw_frames_ctx.is_null() { [INFO] [stdout] | ^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/lib.rs:202:1 [INFO] [stdout] | [INFO] [stdout] 202 | pub unsafe fn get_frame_from_hw(mut frame: *mut AVFrame) -> Result<*mut AVFrame, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_frame_alloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:206:25 [INFO] [stdout] | [INFO] [stdout] 206 | let new_frame = av_frame_alloc(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_hwframe_transfer_data` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:207:19 [INFO] [stdout] | [INFO] [stdout] 207 | let ret = av_hwframe_transfer_data(new_frame, frame, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_frame_copy_props` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:209:9 [INFO] [stdout] | [INFO] [stdout] 209 | av_frame_copy_props(new_frame, frame); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_frame_free` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 210 | av_frame_free(&mut frame); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: returned pointer of `as_ptr` call is never null, so checking it for null will always return false [INFO] [stdout] --> src/lib.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | if !$str.is_null() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | log!(target: "ffmpeg", log_level, "{}", rstr!(buf.as_ptr() as *const libc::c_char).trim()); [INFO] [stdout] | ------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(useless_ptr_null_checks)]` on by default [INFO] [stdout] = note: this warning originates in the macro `rstr` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: returned pointer of `as_ptr` call is never null, so checking it for null will always return false [INFO] [stdout] --> src/lib.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | if !$str.is_null() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | rstr!(buf.as_ptr()).to_string() [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `rstr` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 45.28s [INFO] running `Command { std: "docker" "inspect" "5bdc5033eaa4af73383276c860ea0a9cd7e021f68dde4ed13486f77e914906bd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5bdc5033eaa4af73383276c860ea0a9cd7e021f68dde4ed13486f77e914906bd", kill_on_drop: false }` [INFO] [stdout] 5bdc5033eaa4af73383276c860ea0a9cd7e021f68dde4ed13486f77e914906bd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 03eeb55641d8fbc59d2e5c6d09d981c099f67a1752880819890851c4f094be8a [INFO] running `Command { std: "docker" "start" "-a" "03eeb55641d8fbc59d2e5c6d09d981c099f67a1752880819890851c4f094be8a", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling utf8parse v0.2.2 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling colorchoice v1.0.4 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling anstyle-query v1.1.4 [INFO] [stderr] Compiling anstyle v1.0.11 [INFO] [stderr] Compiling rlimit v0.10.2 [INFO] [stderr] Compiling anstyle-parse v0.2.7 [INFO] [stderr] Compiling jiff v0.2.15 [INFO] [stderr] Compiling anstream v0.6.20 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling regex-automata v0.4.10 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Compiling regex v1.11.2 [INFO] [stderr] Compiling env_filter v0.1.3 [INFO] [stderr] Compiling bindgen v0.69.5 [INFO] [stderr] Compiling env_logger v0.11.8 [INFO] [stderr] Compiling ffmpeg-sys-the-third v3.0.1+ffmpeg-7.1 (https://github.com/v0l/ffmpeg-the-third.git?rev=bf1d21071e92ad7d212f9129eaf13faabeb42920#bf1d2107) [INFO] [stderr] Compiling ffmpeg-rs-raw v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0425]: cannot find value `AV_PIX_FMT_YUV420P` in this scope [INFO] [stdout] --> src/encode.rs:284:29 [INFO] [stdout] | [INFO] [stdout] 284 | let pix_fmts = [AV_PIX_FMT_YUV420P]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these unit variants [INFO] [stdout] | [INFO] [stdout] 269 + use crate::encode::AVPixelFormat::AV_PIX_FMT_YUV420P; [INFO] [stdout] | [INFO] [stdout] 269 + use ffmpeg_sys_the_third::AVPixelFormat::AV_PIX_FMT_YUV420P; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avcodec_version_greater_than_59_24` [INFO] [stdout] --> src/lib.rs:21:11 [INFO] [stdout] | [INFO] [stdout] 21 | #[cfg(not(feature = "avcodec_version_greater_than_59_24"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avcodec_version_greater_than_59_24` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avutil_version_greater_than_57_24` [INFO] [stdout] --> src/lib.rs:23:11 [INFO] [stdout] | [INFO] [stdout] 23 | #[cfg(not(feature = "avutil_version_greater_than_57_24"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avutil_version_greater_than_57_24` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avutil_version_greater_than_58_22` [INFO] [stdout] --> src/audio_fifo.rs:36:15 [INFO] [stdout] | [INFO] [stdout] 36 | #[cfg(feature = "avutil_version_greater_than_58_22")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avutil_version_greater_than_58_22` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avutil_version_greater_than_58_22` [INFO] [stdout] --> src/audio_fifo.rs:38:19 [INFO] [stdout] | [INFO] [stdout] 38 | #[cfg(not(feature = "avutil_version_greater_than_58_22"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avutil_version_greater_than_58_22` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avutil_version_greater_than_58_22` [INFO] [stdout] --> src/audio_fifo.rs:62:19 [INFO] [stdout] | [INFO] [stdout] 62 | #[cfg(feature = "avutil_version_greater_than_58_22")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avutil_version_greater_than_58_22` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avutil_version_greater_than_58_22` [INFO] [stdout] --> src/audio_fifo.rs:64:23 [INFO] [stdout] | [INFO] [stdout] 64 | #[cfg(not(feature = "avutil_version_greater_than_58_22"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avutil_version_greater_than_58_22` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avformat_version_greater_than_60_19` [INFO] [stdout] --> src/demux.rs:2:7 [INFO] [stdout] | [INFO] [stdout] 2 | #[cfg(feature = "avformat_version_greater_than_60_19")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avformat_version_greater_than_60_19` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avformat_version_greater_than_60_22` [INFO] [stdout] --> src/demux.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | #[cfg(feature = "avformat_version_greater_than_60_22")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avformat_version_greater_than_60_22` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::warn` [INFO] [stdout] --> src/demux.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use log::warn; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avformat_version_greater_than_60_19` [INFO] [stdout] --> src/demux.rs:165:15 [INFO] [stdout] | [INFO] [stdout] 165 | #[cfg(feature = "avformat_version_greater_than_60_19")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avformat_version_greater_than_60_19` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avformat_version_greater_than_60_19` [INFO] [stdout] --> src/demux.rs:169:15 [INFO] [stdout] | [INFO] [stdout] 169 | #[cfg(feature = "avformat_version_greater_than_60_19")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avformat_version_greater_than_60_19` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avformat_version_greater_than_60_19` [INFO] [stdout] --> src/demux.rs:271:19 [INFO] [stdout] | [INFO] [stdout] 271 | #[cfg(feature = "avformat_version_greater_than_60_19")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avformat_version_greater_than_60_19` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avformat_version_greater_than_60_19` [INFO] [stdout] --> src/demux.rs:325:11 [INFO] [stdout] | [INFO] [stdout] 325 | #[cfg(feature = "avformat_version_greater_than_60_19")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avformat_version_greater_than_60_19` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avcodec_version_greater_than_61_13` [INFO] [stdout] --> src/encode.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | #[cfg(feature = "avcodec_version_greater_than_61_13")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avcodec_version_greater_than_61_13` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avcodec_version_greater_than_61_13` [INFO] [stdout] --> src/encode.rs:85:11 [INFO] [stdout] | [INFO] [stdout] 85 | #[cfg(feature = "avcodec_version_greater_than_61_13")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avcodec_version_greater_than_61_13` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avcodec_version_greater_than_61_13` [INFO] [stdout] --> src/encode.rs:280:19 [INFO] [stdout] | [INFO] [stdout] 280 | #[cfg(feature = "avcodec_version_greater_than_61_13")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avcodec_version_greater_than_61_13` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avcodec_version_greater_than_61_13` [INFO] [stdout] --> src/encode.rs:283:23 [INFO] [stdout] | [INFO] [stdout] 283 | #[cfg(not(feature = "avcodec_version_greater_than_61_13"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avcodec_version_greater_than_61_13` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `ff_api_avio_write_nonconst` [INFO] [stdout] --> src/mux.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | #[cfg(feature = "ff_api_avio_write_nonconst")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `ff_api_avio_write_nonconst` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `ff_api_avio_write_nonconst` [INFO] [stdout] --> src/mux.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | #[cfg(not(feature = "ff_api_avio_write_nonconst"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `ff_api_avio_write_nonconst` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avformat_version_greater_than_60_19` [INFO] [stdout] --> src/stream_info.rs:2:7 [INFO] [stdout] | [INFO] [stdout] 2 | #[cfg(feature = "avformat_version_greater_than_60_19")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avformat_version_greater_than_60_19` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avformat_version_greater_than_60_19` [INFO] [stdout] --> src/stream_info.rs:197:7 [INFO] [stdout] | [INFO] [stdout] 197 | #[cfg(feature = "avformat_version_greater_than_60_19")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avformat_version_greater_than_60_19` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avformat_version_greater_than_60_19` [INFO] [stdout] --> src/stream_info.rs:209:7 [INFO] [stdout] | [INFO] [stdout] 209 | #[cfg(feature = "avformat_version_greater_than_60_19")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avformat_version_greater_than_60_19` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avformat_version_greater_than_60_19` [INFO] [stdout] --> src/stream_info.rs:219:7 [INFO] [stdout] | [INFO] [stdout] 219 | #[cfg(feature = "avformat_version_greater_than_60_19")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avformat_version_greater_than_60_19` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avformat_version_greater_than_60_19` [INFO] [stdout] --> src/stream_info.rs:23:11 [INFO] [stdout] | [INFO] [stdout] 23 | #[cfg(feature = "avformat_version_greater_than_60_19")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avformat_version_greater_than_60_19` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avutil_version_greater_than_57_30` [INFO] [stdout] --> src/lib.rs:72:11 [INFO] [stdout] | [INFO] [stdout] 72 | #[cfg(feature = "avutil_version_greater_than_57_30")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avutil_version_greater_than_57_30` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avcodec_version_greater_than_54_24` [INFO] [stdout] --> src/lib.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | feature = "avcodec_version_greater_than_54_24", [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avcodec_version_greater_than_54_24` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avutil_version_greater_than_57_30` [INFO] [stdout] --> src/lib.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | not(feature = "avutil_version_greater_than_57_30") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avutil_version_greater_than_57_30` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avcodec_version_greater_than_54_24` [INFO] [stdout] --> src/lib.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | not(feature = "avcodec_version_greater_than_54_24"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avcodec_version_greater_than_54_24` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avutil_version_greater_than_57_30` [INFO] [stdout] --> src/lib.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | not(feature = "avutil_version_greater_than_57_30") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avutil_version_greater_than_57_30` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated module `std::intrinsics`: import this function via `std::mem` instead [INFO] [stdout] --> src/stream_info.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | use std::intrinsics::transmute; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avcodec_version_greater_than_59_24` [INFO] [stdout] --> src/lib.rs:21:11 [INFO] [stdout] | [INFO] [stdout] 21 | #[cfg(not(feature = "avcodec_version_greater_than_59_24"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avcodec_version_greater_than_59_24` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avutil_version_greater_than_57_24` [INFO] [stdout] --> src/lib.rs:23:11 [INFO] [stdout] | [INFO] [stdout] 23 | #[cfg(not(feature = "avutil_version_greater_than_57_24"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avutil_version_greater_than_57_24` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avutil_version_greater_than_58_22` [INFO] [stdout] --> src/audio_fifo.rs:36:15 [INFO] [stdout] | [INFO] [stdout] 36 | #[cfg(feature = "avutil_version_greater_than_58_22")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avutil_version_greater_than_58_22` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avutil_version_greater_than_58_22` [INFO] [stdout] --> src/audio_fifo.rs:38:19 [INFO] [stdout] | [INFO] [stdout] 38 | #[cfg(not(feature = "avutil_version_greater_than_58_22"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avutil_version_greater_than_58_22` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avutil_version_greater_than_58_22` [INFO] [stdout] --> src/audio_fifo.rs:62:19 [INFO] [stdout] | [INFO] [stdout] 62 | #[cfg(feature = "avutil_version_greater_than_58_22")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avutil_version_greater_than_58_22` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avutil_version_greater_than_58_22` [INFO] [stdout] --> src/audio_fifo.rs:64:23 [INFO] [stdout] | [INFO] [stdout] 64 | #[cfg(not(feature = "avutil_version_greater_than_58_22"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avutil_version_greater_than_58_22` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avformat_version_greater_than_60_19` [INFO] [stdout] --> src/demux.rs:2:7 [INFO] [stdout] | [INFO] [stdout] 2 | #[cfg(feature = "avformat_version_greater_than_60_19")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avformat_version_greater_than_60_19` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avformat_version_greater_than_60_22` [INFO] [stdout] --> src/demux.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | #[cfg(feature = "avformat_version_greater_than_60_22")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avformat_version_greater_than_60_22` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::warn` [INFO] [stdout] --> src/demux.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use log::warn; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avformat_version_greater_than_60_19` [INFO] [stdout] --> src/demux.rs:165:15 [INFO] [stdout] | [INFO] [stdout] 165 | #[cfg(feature = "avformat_version_greater_than_60_19")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avformat_version_greater_than_60_19` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avformat_version_greater_than_60_19` [INFO] [stdout] --> src/demux.rs:169:15 [INFO] [stdout] | [INFO] [stdout] 169 | #[cfg(feature = "avformat_version_greater_than_60_19")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avformat_version_greater_than_60_19` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avformat_version_greater_than_60_19` [INFO] [stdout] --> src/demux.rs:271:19 [INFO] [stdout] | [INFO] [stdout] 271 | #[cfg(feature = "avformat_version_greater_than_60_19")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avformat_version_greater_than_60_19` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avcodec_version_greater_than_61_13` [INFO] [stdout] --> src/encode.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | #[cfg(feature = "avcodec_version_greater_than_61_13")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avcodec_version_greater_than_61_13` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avcodec_version_greater_than_61_13` [INFO] [stdout] --> src/encode.rs:85:11 [INFO] [stdout] | [INFO] [stdout] 85 | #[cfg(feature = "avcodec_version_greater_than_61_13")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avcodec_version_greater_than_61_13` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `ff_api_avio_write_nonconst` [INFO] [stdout] --> src/mux.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | #[cfg(feature = "ff_api_avio_write_nonconst")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `ff_api_avio_write_nonconst` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `ff_api_avio_write_nonconst` [INFO] [stdout] --> src/mux.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | #[cfg(not(feature = "ff_api_avio_write_nonconst"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `ff_api_avio_write_nonconst` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avformat_version_greater_than_60_19` [INFO] [stdout] --> src/stream_info.rs:2:7 [INFO] [stdout] | [INFO] [stdout] 2 | #[cfg(feature = "avformat_version_greater_than_60_19")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avformat_version_greater_than_60_19` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avformat_version_greater_than_60_19` [INFO] [stdout] --> src/stream_info.rs:197:7 [INFO] [stdout] | [INFO] [stdout] 197 | #[cfg(feature = "avformat_version_greater_than_60_19")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avformat_version_greater_than_60_19` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avformat_version_greater_than_60_19` [INFO] [stdout] --> src/stream_info.rs:209:7 [INFO] [stdout] | [INFO] [stdout] 209 | #[cfg(feature = "avformat_version_greater_than_60_19")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avformat_version_greater_than_60_19` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avformat_version_greater_than_60_19` [INFO] [stdout] --> src/stream_info.rs:219:7 [INFO] [stdout] | [INFO] [stdout] 219 | #[cfg(feature = "avformat_version_greater_than_60_19")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avformat_version_greater_than_60_19` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avformat_version_greater_than_60_19` [INFO] [stdout] --> src/stream_info.rs:23:11 [INFO] [stdout] | [INFO] [stdout] 23 | #[cfg(feature = "avformat_version_greater_than_60_19")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avformat_version_greater_than_60_19` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avutil_version_greater_than_57_30` [INFO] [stdout] --> src/lib.rs:72:11 [INFO] [stdout] | [INFO] [stdout] 72 | #[cfg(feature = "avutil_version_greater_than_57_30")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avutil_version_greater_than_57_30` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avcodec_version_greater_than_54_24` [INFO] [stdout] --> src/lib.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | feature = "avcodec_version_greater_than_54_24", [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avcodec_version_greater_than_54_24` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avutil_version_greater_than_57_30` [INFO] [stdout] --> src/lib.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | not(feature = "avutil_version_greater_than_57_30") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avutil_version_greater_than_57_30` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avcodec_version_greater_than_54_24` [INFO] [stdout] --> src/lib.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | not(feature = "avcodec_version_greater_than_54_24"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avcodec_version_greater_than_54_24` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `avutil_version_greater_than_57_30` [INFO] [stdout] --> src/lib.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | not(feature = "avutil_version_greater_than_57_30") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `avutil_version_greater_than_57_30` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated module `std::intrinsics`: import this function via `std::mem` instead [INFO] [stdout] --> src/stream_info.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | use std::intrinsics::transmute; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_audio_fifo_realloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | av_audio_fifo_realloc(self.ctx, av_audio_fifo_size(self.ctx) + (*frame).nb_samples); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/audio_fifo.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub unsafe fn buffer_frame(&mut self, frame: *mut AVFrame) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_audio_fifo_size` is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:33:45 [INFO] [stdout] | [INFO] [stdout] 33 | av_audio_fifo_realloc(self.ctx, av_audio_fifo_size(self.ctx) + (*frame).nb_samples); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:33:76 [INFO] [stdout] | [INFO] [stdout] 33 | av_audio_fifo_realloc(self.ctx, av_audio_fifo_size(self.ctx) + (*frame).nb_samples); [INFO] [stdout] | ^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:37:23 [INFO] [stdout] | [INFO] [stdout] 37 | let buf_ptr = (*frame).extended_data as *const _; [INFO] [stdout] | ^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_audio_fifo_write` is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:41:15 [INFO] [stdout] | [INFO] [stdout] 41 | ret = av_audio_fifo_write(self.ctx, buf_ptr, (*frame).nb_samples); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:41:54 [INFO] [stdout] | [INFO] [stdout] 41 | ret = av_audio_fifo_write(self.ctx, buf_ptr, (*frame).nb_samples); [INFO] [stdout] | ^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:46:24 [INFO] [stdout] | [INFO] [stdout] 46 | self.pts = (*frame).pts; [INFO] [stdout] | ^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_audio_fifo_size` is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | if av_audio_fifo_size(self.ctx) >= samples_out as _ { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/audio_fifo.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | pub unsafe fn get_frame(&mut self, samples_out: usize) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_frame_alloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:54:33 [INFO] [stdout] | [INFO] [stdout] 54 | let mut out_frame = av_frame_alloc(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | (*out_frame).nb_samples = samples_out as _; [INFO] [stdout] | ^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | (*out_frame).format = self.format as _; [INFO] [stdout] | ^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_channel_layout_default` is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | av_channel_layout_default(&mut (*out_frame).ch_layout, self.channels as _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:57:44 [INFO] [stdout] | [INFO] [stdout] 57 | av_channel_layout_default(&mut (*out_frame).ch_layout, self.channels as _); [INFO] [stdout] | ^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_frame_get_buffer` is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:59:23 [INFO] [stdout] | [INFO] [stdout] 59 | let ret = av_frame_get_buffer(out_frame, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_frame_free` is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:60:33 [INFO] [stdout] | [INFO] [stdout] 60 | bail_ffmpeg!(ret, { av_frame_free(&mut out_frame) }); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:63:27 [INFO] [stdout] | [INFO] [stdout] 63 | let buf_ptr = (*out_frame).extended_data as *const _; [INFO] [stdout] | ^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_audio_fifo_read` is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:67:16 [INFO] [stdout] | [INFO] [stdout] 67 | if av_audio_fifo_read(self.ctx, buf_ptr, samples_out as _) < samples_out as _ { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_frame_free` is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:68:17 [INFO] [stdout] | [INFO] [stdout] 68 | av_frame_free(&mut out_frame); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:73:13 [INFO] [stdout] | [INFO] [stdout] 73 | (*out_frame).pts = self.pts; [INFO] [stdout] | ^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | self.pts += (*out_frame).nb_samples as i64; [INFO] [stdout] | ^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_audio_fifo_realloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | av_audio_fifo_realloc(self.ctx, av_audio_fifo_size(self.ctx) + (*frame).nb_samples); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/audio_fifo.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub unsafe fn buffer_frame(&mut self, frame: *mut AVFrame) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_audio_fifo_size` is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:33:45 [INFO] [stdout] | [INFO] [stdout] 33 | av_audio_fifo_realloc(self.ctx, av_audio_fifo_size(self.ctx) + (*frame).nb_samples); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:33:76 [INFO] [stdout] | [INFO] [stdout] 33 | av_audio_fifo_realloc(self.ctx, av_audio_fifo_size(self.ctx) + (*frame).nb_samples); [INFO] [stdout] | ^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avcodec_get_hw_config` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:141:25 [INFO] [stdout] | [INFO] [stdout] 141 | hw_config = avcodec_get_hw_config(codec, i); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/decode.rs:133:5 [INFO] [stdout] | [INFO] [stdout] 133 | / pub unsafe fn list_supported_hw_accel( [INFO] [stdout] 134 | | &self, [INFO] [stdout] 135 | | codec: *const AVCodec, [INFO] [stdout] 136 | | ) -> impl Iterator { [INFO] [stdout] | |_____________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:37:23 [INFO] [stdout] | [INFO] [stdout] 37 | let buf_ptr = (*frame).extended_data as *const _; [INFO] [stdout] | ^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_audio_fifo_write` is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:41:15 [INFO] [stdout] | [INFO] [stdout] 41 | ret = av_audio_fifo_write(self.ctx, buf_ptr, (*frame).nb_samples); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:147:16 [INFO] [stdout] | [INFO] [stdout] 147 | if (*hw_config).methods & hw_flag == hw_flag { [INFO] [stdout] | ^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:41:54 [INFO] [stdout] | [INFO] [stdout] 41 | ret = av_audio_fifo_write(self.ctx, buf_ptr, (*frame).nb_samples); [INFO] [stdout] | ^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:46:24 [INFO] [stdout] | [INFO] [stdout] 46 | self.pts = (*frame).pts; [INFO] [stdout] | ^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:148:26 [INFO] [stdout] | [INFO] [stdout] 148 | ret.push((*hw_config).device_type); [INFO] [stdout] | ^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_audio_fifo_size` is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | if av_audio_fifo_size(self.ctx) >= samples_out as _ { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/audio_fifo.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | pub unsafe fn get_frame(&mut self, samples_out: usize) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_frame_alloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:54:33 [INFO] [stdout] | [INFO] [stdout] 54 | let mut out_frame = av_frame_alloc(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `hw_config` is never read [INFO] [stdout] --> src/decode.rs:137:29 [INFO] [stdout] | [INFO] [stdout] 137 | let mut hw_config = ptr::null(); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | (*out_frame).nb_samples = samples_out as _; [INFO] [stdout] | ^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | (*out_frame).format = self.format as _; [INFO] [stdout] | ^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_channel_layout_default` is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | av_channel_layout_default(&mut (*out_frame).ch_layout, self.channels as _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:57:44 [INFO] [stdout] | [INFO] [stdout] 57 | av_channel_layout_default(&mut (*out_frame).ch_layout, self.channels as _); [INFO] [stdout] | ^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_frame_get_buffer` is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:59:23 [INFO] [stdout] | [INFO] [stdout] 59 | let ret = av_frame_get_buffer(out_frame, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_frame_free` is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:60:33 [INFO] [stdout] | [INFO] [stdout] 60 | bail_ffmpeg!(ret, { av_frame_free(&mut out_frame) }); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:63:27 [INFO] [stdout] | [INFO] [stdout] 63 | let buf_ptr = (*out_frame).extended_data as *const _; [INFO] [stdout] | ^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_audio_fifo_read` is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:67:16 [INFO] [stdout] | [INFO] [stdout] 67 | if av_audio_fifo_read(self.ctx, buf_ptr, samples_out as _) < samples_out as _ { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_frame_free` is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:68:17 [INFO] [stdout] | [INFO] [stdout] 68 | av_frame_free(&mut out_frame); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:73:13 [INFO] [stdout] | [INFO] [stdout] 73 | (*out_frame).pts = self.pts; [INFO] [stdout] | ^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/audio_fifo.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | self.pts += (*out_frame).nb_samples as i64; [INFO] [stdout] | ^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:164:25 [INFO] [stdout] | [INFO] [stdout] 164 | let codec_par = (*stream).codecpar; [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/decode.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 155 | / pub unsafe fn setup_decoder_for_stream( [INFO] [stdout] 156 | | &mut self, [INFO] [stdout] 157 | | stream: *mut AVStream, [INFO] [stdout] 158 | | options: Option>, [INFO] [stdout] 159 | | ) -> Result<&mut DecoderCodecContext, Error> { [INFO] [stdout] | |________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `decode::Decoder::add_decoder` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:171:19 [INFO] [stdout] | [INFO] [stdout] 171 | let ctx = self.add_decoder((*codec_par).codec_id, (*stream).index)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:171:36 [INFO] [stdout] | [INFO] [stdout] 171 | let ctx = self.add_decoder((*codec_par).codec_id, (*stream).index)?; [INFO] [stdout] | ^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:171:59 [INFO] [stdout] | [INFO] [stdout] 171 | let ctx = self.add_decoder((*codec_par).codec_id, (*stream).index)?; [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avcodec_parameters_to_context` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:172:19 [INFO] [stdout] | [INFO] [stdout] 172 | let ret = avcodec_parameters_to_context(ctx.context, (*stream).codecpar); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:172:62 [INFO] [stdout] | [INFO] [stdout] 172 | let ret = avcodec_parameters_to_context(ctx.context, (*stream).codecpar); [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:175:28 [INFO] [stdout] | [INFO] [stdout] 175 | let stream_index = (*stream).index; [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `decode::Decoder::open_decoder_codec_by_index` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:176:9 [INFO] [stdout] | [INFO] [stdout] 176 | self.open_decoder_codec_by_index(stream_index, options)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avcodec_get_hw_config` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:141:25 [INFO] [stdout] | [INFO] [stdout] 141 | hw_config = avcodec_get_hw_config(codec, i); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/decode.rs:133:5 [INFO] [stdout] | [INFO] [stdout] 133 | / pub unsafe fn list_supported_hw_accel( [INFO] [stdout] 134 | | &self, [INFO] [stdout] 135 | | codec: *const AVCodec, [INFO] [stdout] 136 | | ) -> impl Iterator { [INFO] [stdout] | |_____________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:147:16 [INFO] [stdout] | [INFO] [stdout] 147 | if (*hw_config).methods & hw_flag == hw_flag { [INFO] [stdout] | ^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:148:26 [INFO] [stdout] | [INFO] [stdout] 148 | ret.push((*hw_config).device_type); [INFO] [stdout] | ^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avcodec_open2` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:183:19 [INFO] [stdout] | [INFO] [stdout] 183 | let ret = avcodec_open2(ctx.context, ctx.codec, &mut dict); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/decode.rs:181:5 [INFO] [stdout] | [INFO] [stdout] 181 | pub unsafe fn open_decoder_codec(&mut self, ctx: &DecoderCodecContext) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `hw_config` is never read [INFO] [stdout] --> src/decode.rs:137:29 [INFO] [stdout] | [INFO] [stdout] 137 | let mut hw_config = ptr::null(); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:164:25 [INFO] [stdout] | [INFO] [stdout] 164 | let codec_par = (*stream).codecpar; [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/decode.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 155 | / pub unsafe fn setup_decoder_for_stream( [INFO] [stdout] 156 | | &mut self, [INFO] [stdout] 157 | | stream: *mut AVStream, [INFO] [stdout] 158 | | options: Option>, [INFO] [stdout] 159 | | ) -> Result<&mut DecoderCodecContext, Error> { [INFO] [stdout] | |________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `decode::Decoder::add_decoder` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:171:19 [INFO] [stdout] | [INFO] [stdout] 171 | let ctx = self.add_decoder((*codec_par).codec_id, (*stream).index)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `options_to_dict` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:196:17 [INFO] [stdout] | [INFO] [stdout] 196 | crate::options_to_dict(options)? [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/decode.rs:189:5 [INFO] [stdout] | [INFO] [stdout] 189 | / pub unsafe fn open_decoder_codec_by_index( [INFO] [stdout] 190 | | &mut self, [INFO] [stdout] 191 | | stream_index: i32, [INFO] [stdout] 192 | | options: Option>, [INFO] [stdout] 193 | | ) -> Result<(), Error> { [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:171:36 [INFO] [stdout] | [INFO] [stdout] 171 | let ctx = self.add_decoder((*codec_par).codec_id, (*stream).index)?; [INFO] [stdout] | ^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avcodec_open2` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:200:23 [INFO] [stdout] | [INFO] [stdout] 200 | let ret = avcodec_open2(ctx.context, ctx.codec, &mut dict); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:171:59 [INFO] [stdout] | [INFO] [stdout] 171 | let ctx = self.add_decoder((*codec_par).codec_id, (*stream).index)?; [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avcodec_parameters_to_context` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:172:19 [INFO] [stdout] | [INFO] [stdout] 172 | let ret = avcodec_parameters_to_context(ctx.context, (*stream).codecpar); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:172:62 [INFO] [stdout] | [INFO] [stdout] 172 | let ret = avcodec_parameters_to_context(ctx.context, (*stream).codecpar); [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:175:28 [INFO] [stdout] | [INFO] [stdout] 175 | let stream_index = (*stream).index; [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `decode::Decoder::open_decoder_codec_by_index` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:176:9 [INFO] [stdout] | [INFO] [stdout] 176 | self.open_decoder_codec_by_index(stream_index, options)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avcodec_find_decoder` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:215:25 [INFO] [stdout] | [INFO] [stdout] 215 | let codec = avcodec_find_decoder(codec_id); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/decode.rs:209:5 [INFO] [stdout] | [INFO] [stdout] 209 | / pub unsafe fn add_decoder( [INFO] [stdout] 210 | | &mut self, [INFO] [stdout] 211 | | codec_id: AVCodecID, [INFO] [stdout] 212 | | stream_index: i32, [INFO] [stdout] 213 | | ) -> Result<&mut DecoderCodecContext, Error> { [INFO] [stdout] | |________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avcodec_open2` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:183:19 [INFO] [stdout] | [INFO] [stdout] 183 | let ret = avcodec_open2(ctx.context, ctx.codec, &mut dict); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/decode.rs:181:5 [INFO] [stdout] | [INFO] [stdout] 181 | pub unsafe fn open_decoder_codec(&mut self, ctx: &DecoderCodecContext) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avcodec_get_name` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:219:27 [INFO] [stdout] | [INFO] [stdout] 219 | rstr!(avcodec_get_name(codec_id)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | core::ffi::CStr::from_ptr($str).to_str().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/decode.rs:219:21 [INFO] [stdout] | [INFO] [stdout] 219 | rstr!(avcodec_get_name(codec_id)) [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `rstr` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avcodec_alloc_context3` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:222:27 [INFO] [stdout] | [INFO] [stdout] 222 | let context = avcodec_alloc_context3(codec); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avcodec_get_name` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:227:36 [INFO] [stdout] | [INFO] [stdout] 227 | let codec_name = rstr!(avcodec_get_name((*codec).id)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:227:53 [INFO] [stdout] | [INFO] [stdout] 227 | let codec_name = rstr!(avcodec_get_name((*codec).id)); [INFO] [stdout] | ^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | core::ffi::CStr::from_ptr($str).to_str().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/decode.rs:227:30 [INFO] [stdout] | [INFO] [stdout] 227 | let codec_name = rstr!(avcodec_get_name((*codec).id)); [INFO] [stdout] | ------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `rstr` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avcodec_get_hw_config` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:234:33 [INFO] [stdout] | [INFO] [stdout] 234 | hw_config = avcodec_get_hw_config(codec, i); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_hwdevice_get_type_name` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:239:41 [INFO] [stdout] | [INFO] [stdout] 239 | let hw_name = rstr!(av_hwdevice_get_type_name((*hw_config).device_type)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:239:67 [INFO] [stdout] | [INFO] [stdout] 239 | let hw_name = rstr!(av_hwdevice_get_type_name((*hw_config).device_type)); [INFO] [stdout] | ^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | core::ffi::CStr::from_ptr($str).to_str().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/decode.rs:239:35 [INFO] [stdout] | [INFO] [stdout] 239 | let hw_name = rstr!(av_hwdevice_get_type_name((*hw_config).device_type)); [INFO] [stdout] | ---------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `rstr` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:240:44 [INFO] [stdout] | [INFO] [stdout] 240 | if !hw_types.contains(&(*hw_config).device_type) { [INFO] [stdout] | ^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `options_to_dict` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:196:17 [INFO] [stdout] | [INFO] [stdout] 196 | crate::options_to_dict(options)? [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/decode.rs:189:5 [INFO] [stdout] | [INFO] [stdout] 189 | / pub unsafe fn open_decoder_codec_by_index( [INFO] [stdout] 190 | | &mut self, [INFO] [stdout] 191 | | stream_index: i32, [INFO] [stdout] 192 | | options: Option>, [INFO] [stdout] 193 | | ) -> Result<(), Error> { [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:245:24 [INFO] [stdout] | [INFO] [stdout] 245 | if (*hw_config).methods & hw_flag == hw_flag { [INFO] [stdout] | ^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_hwdevice_ctx_create` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:246:35 [INFO] [stdout] | [INFO] [stdout] 246 | let ret = av_hwdevice_ctx_create( [INFO] [stdout] | ___________________________________^ [INFO] [stdout] 247 | | &mut hw_buf_ref, [INFO] [stdout] 248 | | (*hw_config).device_type, [INFO] [stdout] 249 | | ptr::null_mut(), [INFO] [stdout] 250 | | ptr::null_mut(), [INFO] [stdout] 251 | | 0, [INFO] [stdout] 252 | | ); [INFO] [stdout] | |_________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:248:29 [INFO] [stdout] | [INFO] [stdout] 248 | ... (*hw_config).device_type, [INFO] [stdout] | ^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avcodec_open2` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:200:23 [INFO] [stdout] | [INFO] [stdout] 200 | let ret = avcodec_open2(ctx.context, ctx.codec, &mut dict); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:261:25 [INFO] [stdout] | [INFO] [stdout] 261 | (*context).hw_device_ctx = av_buffer_ref(hw_buf_ref); [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_buffer_ref` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:261:52 [INFO] [stdout] | [INFO] [stdout] 261 | (*context).hw_device_ctx = av_buffer_ref(hw_buf_ref); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avcodec_find_decoder` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:215:25 [INFO] [stdout] | [INFO] [stdout] 215 | let codec = avcodec_find_decoder(codec_id); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/decode.rs:209:5 [INFO] [stdout] | [INFO] [stdout] 209 | / pub unsafe fn add_decoder( [INFO] [stdout] 210 | | &mut self, [INFO] [stdout] 211 | | codec_id: AVCodecID, [INFO] [stdout] 212 | | stream_index: i32, [INFO] [stdout] 213 | | ) -> Result<&mut DecoderCodecContext, Error> { [INFO] [stdout] | |________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avcodec_get_name` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:219:27 [INFO] [stdout] | [INFO] [stdout] 219 | rstr!(avcodec_get_name(codec_id)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | core::ffi::CStr::from_ptr($str).to_str().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/decode.rs:219:21 [INFO] [stdout] | [INFO] [stdout] 219 | rstr!(avcodec_get_name(codec_id)) [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `rstr` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avcodec_alloc_context3` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:222:27 [INFO] [stdout] | [INFO] [stdout] 222 | let context = avcodec_alloc_context3(codec); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avcodec_get_name` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:227:36 [INFO] [stdout] | [INFO] [stdout] 227 | let codec_name = rstr!(avcodec_get_name((*codec).id)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:227:53 [INFO] [stdout] | [INFO] [stdout] 227 | let codec_name = rstr!(avcodec_get_name((*codec).id)); [INFO] [stdout] | ^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | core::ffi::CStr::from_ptr($str).to_str().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/decode.rs:227:30 [INFO] [stdout] | [INFO] [stdout] 227 | let codec_name = rstr!(avcodec_get_name((*codec).id)); [INFO] [stdout] | ------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `rstr` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avcodec_get_hw_config` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:234:33 [INFO] [stdout] | [INFO] [stdout] 234 | hw_config = avcodec_get_hw_config(codec, i); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `decode::Decoder::decode_pkt_internal` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:283:25 [INFO] [stdout] | [INFO] [stdout] 283 | pkgs.extend(Self::decode_pkt_internal(ctx, ptr::null_mut())?); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/decode.rs:280:5 [INFO] [stdout] | [INFO] [stdout] 280 | pub unsafe fn flush(&mut self) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_hwdevice_get_type_name` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:239:41 [INFO] [stdout] | [INFO] [stdout] 239 | let hw_name = rstr!(av_hwdevice_get_type_name((*hw_config).device_type)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:239:67 [INFO] [stdout] | [INFO] [stdout] 239 | let hw_name = rstr!(av_hwdevice_get_type_name((*hw_config).device_type)); [INFO] [stdout] | ^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | core::ffi::CStr::from_ptr($str).to_str().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/decode.rs:239:35 [INFO] [stdout] | [INFO] [stdout] 239 | let hw_name = rstr!(av_hwdevice_get_type_name((*hw_config).device_type)); [INFO] [stdout] | ---------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `rstr` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:240:44 [INFO] [stdout] | [INFO] [stdout] 240 | if !hw_types.contains(&(*hw_config).device_type) { [INFO] [stdout] | ^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:245:24 [INFO] [stdout] | [INFO] [stdout] 245 | if (*hw_config).methods & hw_flag == hw_flag { [INFO] [stdout] | ^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avcodec_send_packet` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:292:23 [INFO] [stdout] | [INFO] [stdout] 292 | let mut ret = avcodec_send_packet(ctx.context, pkt); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/decode.rs:288:5 [INFO] [stdout] | [INFO] [stdout] 288 | / pub unsafe fn decode_pkt_internal( [INFO] [stdout] 289 | | ctx: &DecoderCodecContext, [INFO] [stdout] 290 | | pkt: *mut AVPacket, [INFO] [stdout] 291 | | ) -> Result, Error> { [INFO] [stdout] | |________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_hwdevice_ctx_create` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:246:35 [INFO] [stdout] | [INFO] [stdout] 246 | let ret = av_hwdevice_ctx_create( [INFO] [stdout] | ___________________________________^ [INFO] [stdout] 247 | | &mut hw_buf_ref, [INFO] [stdout] 248 | | (*hw_config).device_type, [INFO] [stdout] 249 | | ptr::null_mut(), [INFO] [stdout] 250 | | ptr::null_mut(), [INFO] [stdout] 251 | | 0, [INFO] [stdout] 252 | | ); [INFO] [stdout] | |_________________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:248:29 [INFO] [stdout] | [INFO] [stdout] 248 | ... (*hw_config).device_type, [INFO] [stdout] | ^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:261:25 [INFO] [stdout] | [INFO] [stdout] 261 | (*context).hw_device_ctx = av_buffer_ref(hw_buf_ref); [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_frame_alloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:297:29 [INFO] [stdout] | [INFO] [stdout] 297 | let mut frame = av_frame_alloc(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_buffer_ref` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:261:52 [INFO] [stdout] | [INFO] [stdout] 261 | (*context).hw_device_ctx = av_buffer_ref(hw_buf_ref); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avcodec_receive_frame` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:298:19 [INFO] [stdout] | [INFO] [stdout] 298 | ret = avcodec_receive_frame(ctx.context, frame); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_frame_free` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:300:17 [INFO] [stdout] | [INFO] [stdout] 300 | av_frame_free(&mut frame); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `decode::Decoder::flush` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:316:20 [INFO] [stdout] | [INFO] [stdout] 316 | return self.flush(); [INFO] [stdout] | ^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/decode.rs:311:5 [INFO] [stdout] | [INFO] [stdout] 311 | / pub unsafe fn decode_pkt( [INFO] [stdout] 312 | | &mut self, [INFO] [stdout] 313 | | pkt: *mut AVPacket, [INFO] [stdout] 314 | | ) -> Result, Error> { [INFO] [stdout] | |________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:318:49 [INFO] [stdout] | [INFO] [stdout] 318 | if let Some(ctx) = self.codecs.get_mut(&(*pkt).stream_index) { [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `decode::Decoder::decode_pkt_internal` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:319:13 [INFO] [stdout] | [INFO] [stdout] 319 | Self::decode_pkt_internal(ctx, pkt) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `decode::Decoder::decode_pkt_internal` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:283:25 [INFO] [stdout] | [INFO] [stdout] 283 | pkgs.extend(Self::decode_pkt_internal(ctx, ptr::null_mut())?); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/decode.rs:280:5 [INFO] [stdout] | [INFO] [stdout] 280 | pub unsafe fn flush(&mut self) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avcodec_send_packet` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:292:23 [INFO] [stdout] | [INFO] [stdout] 292 | let mut ret = avcodec_send_packet(ctx.context, pkt); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/decode.rs:288:5 [INFO] [stdout] | [INFO] [stdout] 288 | / pub unsafe fn decode_pkt_internal( [INFO] [stdout] 289 | | ctx: &DecoderCodecContext, [INFO] [stdout] 290 | | pkt: *mut AVPacket, [INFO] [stdout] 291 | | ) -> Result, Error> { [INFO] [stdout] | |________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_frame_alloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:297:29 [INFO] [stdout] | [INFO] [stdout] 297 | let mut frame = av_frame_alloc(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avcodec_receive_frame` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:298:19 [INFO] [stdout] | [INFO] [stdout] 298 | ret = avcodec_receive_frame(ctx.context, frame); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_frame_free` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:300:17 [INFO] [stdout] | [INFO] [stdout] 300 | av_frame_free(&mut frame); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_find_input_format` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:109:23 [INFO] [stdout] | [INFO] [stdout] 109 | let ret = av_find_input_format(fmt_str); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/demux.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 106 | unsafe fn open(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `libc::free` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:110:13 [INFO] [stdout] | [INFO] [stdout] 110 | libc::free(fmt_str as *mut libc::c_void); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avformat_open_input` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:122:27 [INFO] [stdout] | [INFO] [stdout] 122 | let ret = avformat_open_input(&mut self.ctx, input_cstr, format, ptr::null_mut()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `libc::free` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:123:17 [INFO] [stdout] | [INFO] [stdout] 123 | libc::free(input_cstr as *mut libc::c_void); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avio_alloc_context` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:129:26 [INFO] [stdout] | [INFO] [stdout] 129 | let pb = avio_alloc_context( [INFO] [stdout] | __________________________^ [INFO] [stdout] 130 | | av_mallocz(self.buffer_size) as *mut _, [INFO] [stdout] 131 | | self.buffer_size as _, [INFO] [stdout] 132 | | 0, [INFO] [stdout] ... | [INFO] [stdout] 136 | | None, [INFO] [stdout] 137 | | ); [INFO] [stdout] | |_________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_mallocz` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:130:21 [INFO] [stdout] | [INFO] [stdout] 130 | av_mallocz(self.buffer_size) as *mut _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `decode::Decoder::flush` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:316:20 [INFO] [stdout] | [INFO] [stdout] 316 | return self.flush(); [INFO] [stdout] | ^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/decode.rs:311:5 [INFO] [stdout] | [INFO] [stdout] 311 | / pub unsafe fn decode_pkt( [INFO] [stdout] 312 | | &mut self, [INFO] [stdout] 313 | | pkt: *mut AVPacket, [INFO] [stdout] 314 | | ) -> Result, Error> { [INFO] [stdout] | |________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:142:17 [INFO] [stdout] | [INFO] [stdout] 142 | (*self.ctx).pb = pb; [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:318:49 [INFO] [stdout] | [INFO] [stdout] 318 | if let Some(ctx) = self.codecs.get_mut(&(*pkt).stream_index) { [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avformat_open_input` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:148:27 [INFO] [stdout] | [INFO] [stdout] 148 | let ret = avformat_open_input(&mut self.ctx, url_cstr, format, ptr::null_mut()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `decode::Decoder::decode_pkt_internal` is unsafe and requires unsafe block [INFO] [stdout] --> src/decode.rs:319:13 [INFO] [stdout] | [INFO] [stdout] 319 | Self::decode_pkt_internal(ctx, pkt) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `libc::free` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:150:21 [INFO] [stdout] | [INFO] [stdout] 150 | libc::free(url_cstr as *mut libc::c_void); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `demux::Demuxer::open` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:159:9 [INFO] [stdout] | [INFO] [stdout] 159 | self.open()?; [INFO] [stdout] | ^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/demux.rs:158:5 [INFO] [stdout] | [INFO] [stdout] 158 | pub unsafe fn probe_input(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avformat_find_stream_info` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:160:12 [INFO] [stdout] | [INFO] [stdout] 160 | if avformat_find_stream_info(self.ctx, ptr::null_mut()) < 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:198:26 [INFO] [stdout] | [INFO] [stdout] 198 | while n_stream < (*self.ctx).nb_streams as usize { [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:199:26 [INFO] [stdout] | [INFO] [stdout] 199 | let stream = *(*self.ctx).streams.add(n_stream); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:199:27 [INFO] [stdout] | [INFO] [stdout] 199 | let stream = *(*self.ctx).streams.add(n_stream); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:199:27 [INFO] [stdout] | [INFO] [stdout] 199 | let stream = *(*self.ctx).streams.add(n_stream); [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_dict_get` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:202:24 [INFO] [stdout] | [INFO] [stdout] 202 | let lang = av_dict_get((*stream).metadata, lang_key, ptr::null_mut(), 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:202:36 [INFO] [stdout] | [INFO] [stdout] 202 | let lang = av_dict_get((*stream).metadata, lang_key, ptr::null_mut(), 0); [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `libc::free` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:203:13 [INFO] [stdout] | [INFO] [stdout] 203 | libc::free(lang_key as *mut libc::c_void); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:207:23 [INFO] [stdout] | [INFO] [stdout] 207 | rstr!((*lang).value).to_string() [INFO] [stdout] | ^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | core::ffi::CStr::from_ptr($str).to_str().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/demux.rs:207:17 [INFO] [stdout] | [INFO] [stdout] 207 | rstr!((*lang).value).to_string() [INFO] [stdout] | -------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `rstr` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_q2d` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:209:21 [INFO] [stdout] | [INFO] [stdout] 209 | let q = av_q2d((*stream).time_base); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:209:28 [INFO] [stdout] | [INFO] [stdout] 209 | let q = av_q2d((*stream).time_base); [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:210:19 [INFO] [stdout] | [INFO] [stdout] 210 | match (*(*stream).codecpar).codec_type { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:210:21 [INFO] [stdout] | [INFO] [stdout] 210 | match (*(*stream).codecpar).codec_type { [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:214:32 [INFO] [stdout] | [INFO] [stdout] 214 | index: (*stream).index as _, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:215:32 [INFO] [stdout] | [INFO] [stdout] 215 | codec: (*(*stream).codecpar).codec_id as _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:215:34 [INFO] [stdout] | [INFO] [stdout] 215 | codec: (*(*stream).codecpar).codec_id as _, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:217:32 [INFO] [stdout] | [INFO] [stdout] 217 | width: (*(*stream).codecpar).width as _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:217:34 [INFO] [stdout] | [INFO] [stdout] 217 | width: (*(*stream).codecpar).width as _, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:218:33 [INFO] [stdout] | [INFO] [stdout] 218 | height: (*(*stream).codecpar).height as _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:218:35 [INFO] [stdout] | [INFO] [stdout] 218 | height: (*(*stream).codecpar).height as _, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_q2d` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:219:30 [INFO] [stdout] | [INFO] [stdout] 219 | fps: av_q2d((*stream).avg_frame_rate) as _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:219:37 [INFO] [stdout] | [INFO] [stdout] 219 | fps: av_q2d((*stream).avg_frame_rate) as _, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:220:33 [INFO] [stdout] | [INFO] [stdout] 220 | format: (*(*stream).codecpar).format as _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:220:35 [INFO] [stdout] | [INFO] [stdout] 220 | format: (*(*stream).codecpar).format as _, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:223:38 [INFO] [stdout] | [INFO] [stdout] 223 | start_time: ((*stream).start_time as f64 * q) as f32, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:230:32 [INFO] [stdout] | [INFO] [stdout] 230 | index: (*stream).index as _, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:231:32 [INFO] [stdout] | [INFO] [stdout] 231 | codec: (*(*stream).codecpar).codec_id as _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:231:34 [INFO] [stdout] | [INFO] [stdout] 231 | codec: (*(*stream).codecpar).codec_id as _, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:233:32 [INFO] [stdout] | [INFO] [stdout] 233 | width: (*(*stream).codecpar).width as _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:233:34 [INFO] [stdout] | [INFO] [stdout] 233 | width: (*(*stream).codecpar).width as _, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:234:33 [INFO] [stdout] | [INFO] [stdout] 234 | height: (*(*stream).codecpar).height as _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_find_input_format` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:109:23 [INFO] [stdout] | [INFO] [stdout] 109 | let ret = av_find_input_format(fmt_str); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/demux.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 106 | unsafe fn open(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `libc::free` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:110:13 [INFO] [stdout] | [INFO] [stdout] 110 | libc::free(fmt_str as *mut libc::c_void); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avformat_open_input` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:122:27 [INFO] [stdout] | [INFO] [stdout] 122 | let ret = avformat_open_input(&mut self.ctx, input_cstr, format, ptr::null_mut()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `libc::free` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:123:17 [INFO] [stdout] | [INFO] [stdout] 123 | libc::free(input_cstr as *mut libc::c_void); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avio_alloc_context` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:129:26 [INFO] [stdout] | [INFO] [stdout] 129 | let pb = avio_alloc_context( [INFO] [stdout] | __________________________^ [INFO] [stdout] 130 | | av_mallocz(self.buffer_size) as *mut _, [INFO] [stdout] 131 | | self.buffer_size as _, [INFO] [stdout] 132 | | 0, [INFO] [stdout] ... | [INFO] [stdout] 136 | | None, [INFO] [stdout] 137 | | ); [INFO] [stdout] | |_________________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_mallocz` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:130:21 [INFO] [stdout] | [INFO] [stdout] 130 | av_mallocz(self.buffer_size) as *mut _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:142:17 [INFO] [stdout] | [INFO] [stdout] 142 | (*self.ctx).pb = pb; [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avformat_open_input` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:148:27 [INFO] [stdout] | [INFO] [stdout] 148 | let ret = avformat_open_input(&mut self.ctx, url_cstr, format, ptr::null_mut()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `libc::free` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:150:21 [INFO] [stdout] | [INFO] [stdout] 150 | libc::free(url_cstr as *mut libc::c_void); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `demux::Demuxer::open` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:159:9 [INFO] [stdout] | [INFO] [stdout] 159 | self.open()?; [INFO] [stdout] | ^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/demux.rs:158:5 [INFO] [stdout] | [INFO] [stdout] 158 | pub unsafe fn probe_input(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avformat_find_stream_info` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:160:12 [INFO] [stdout] | [INFO] [stdout] 160 | if avformat_find_stream_info(self.ctx, ptr::null_mut()) < 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:198:26 [INFO] [stdout] | [INFO] [stdout] 198 | while n_stream < (*self.ctx).nb_streams as usize { [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:199:26 [INFO] [stdout] | [INFO] [stdout] 199 | let stream = *(*self.ctx).streams.add(n_stream); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:199:27 [INFO] [stdout] | [INFO] [stdout] 199 | let stream = *(*self.ctx).streams.add(n_stream); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:199:27 [INFO] [stdout] | [INFO] [stdout] 199 | let stream = *(*self.ctx).streams.add(n_stream); [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_dict_get` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:202:24 [INFO] [stdout] | [INFO] [stdout] 202 | let lang = av_dict_get((*stream).metadata, lang_key, ptr::null_mut(), 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:202:36 [INFO] [stdout] | [INFO] [stdout] 202 | let lang = av_dict_get((*stream).metadata, lang_key, ptr::null_mut(), 0); [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:234:35 [INFO] [stdout] | [INFO] [stdout] 234 | height: (*(*stream).codecpar).height as _, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:236:33 [INFO] [stdout] | [INFO] [stdout] 236 | format: (*(*stream).codecpar).format as _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:236:35 [INFO] [stdout] | [INFO] [stdout] 236 | format: (*(*stream).codecpar).format as _, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:237:38 [INFO] [stdout] | [INFO] [stdout] 237 | sample_rate: (*(*stream).codecpar).sample_rate as _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:237:40 [INFO] [stdout] | [INFO] [stdout] 237 | sample_rate: (*(*stream).codecpar).sample_rate as _, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:238:35 [INFO] [stdout] | [INFO] [stdout] 238 | channels: (*(*stream).codecpar).ch_layout.nb_channels as _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:238:37 [INFO] [stdout] | [INFO] [stdout] 238 | channels: (*(*stream).codecpar).ch_layout.nb_channels as _, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:239:38 [INFO] [stdout] | [INFO] [stdout] 239 | start_time: ((*stream).start_time as f64 * q) as f32, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:246:32 [INFO] [stdout] | [INFO] [stdout] 246 | index: (*stream).index as _, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:247:32 [INFO] [stdout] | [INFO] [stdout] 247 | codec: (*(*stream).codecpar).codec_id as _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:247:34 [INFO] [stdout] | [INFO] [stdout] 247 | codec: (*(*stream).codecpar).codec_id as _, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:255:38 [INFO] [stdout] | [INFO] [stdout] 255 | start_time: ((*stream).start_time as f64 * q) as f32, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:266:23 [INFO] [stdout] | [INFO] [stdout] 266 | duration: (*self.ctx).duration as f32 / AV_TIME_BASE as f32, [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:267:22 [INFO] [stdout] | [INFO] [stdout] 267 | bitrate: (*self.ctx).bit_rate as usize, [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:268:27 [INFO] [stdout] | [INFO] [stdout] 268 | format: rstr!((*(*self.ctx).iformat).name).to_string(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:268:29 [INFO] [stdout] | [INFO] [stdout] 268 | format: rstr!((*(*self.ctx).iformat).name).to_string(), [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | core::ffi::CStr::from_ptr($str).to_str().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/demux.rs:268:21 [INFO] [stdout] | [INFO] [stdout] 268 | format: rstr!((*(*self.ctx).iformat).name).to_string(), [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `rstr` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `libc::free` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:203:13 [INFO] [stdout] | [INFO] [stdout] 203 | libc::free(lang_key as *mut libc::c_void); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:207:23 [INFO] [stdout] | [INFO] [stdout] 207 | rstr!((*lang).value).to_string() [INFO] [stdout] | ^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | core::ffi::CStr::from_ptr($str).to_str().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/demux.rs:207:17 [INFO] [stdout] | [INFO] [stdout] 207 | rstr!((*lang).value).to_string() [INFO] [stdout] | -------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `rstr` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_q2d` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:209:21 [INFO] [stdout] | [INFO] [stdout] 209 | let q = av_q2d((*stream).time_base); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:209:28 [INFO] [stdout] | [INFO] [stdout] 209 | let q = av_q2d((*stream).time_base); [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:210:19 [INFO] [stdout] | [INFO] [stdout] 210 | match (*(*stream).codecpar).codec_type { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:210:21 [INFO] [stdout] | [INFO] [stdout] 210 | match (*(*stream).codecpar).codec_type { [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:214:32 [INFO] [stdout] | [INFO] [stdout] 214 | index: (*stream).index as _, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:215:32 [INFO] [stdout] | [INFO] [stdout] 215 | codec: (*(*stream).codecpar).codec_id as _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:215:34 [INFO] [stdout] | [INFO] [stdout] 215 | codec: (*(*stream).codecpar).codec_id as _, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:217:32 [INFO] [stdout] | [INFO] [stdout] 217 | width: (*(*stream).codecpar).width as _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:217:34 [INFO] [stdout] | [INFO] [stdout] 217 | width: (*(*stream).codecpar).width as _, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:218:33 [INFO] [stdout] | [INFO] [stdout] 218 | height: (*(*stream).codecpar).height as _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:218:35 [INFO] [stdout] | [INFO] [stdout] 218 | height: (*(*stream).codecpar).height as _, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_q2d` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:219:30 [INFO] [stdout] | [INFO] [stdout] 219 | fps: av_q2d((*stream).avg_frame_rate) as _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:219:37 [INFO] [stdout] | [INFO] [stdout] 219 | fps: av_q2d((*stream).avg_frame_rate) as _, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:269:31 [INFO] [stdout] | [INFO] [stdout] 269 | mime_types: rstr!((*(*self.ctx).iformat).mime_type).to_string(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:269:33 [INFO] [stdout] | [INFO] [stdout] 269 | mime_types: rstr!((*(*self.ctx).iformat).mime_type).to_string(), [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | core::ffi::CStr::from_ptr($str).to_str().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/demux.rs:269:25 [INFO] [stdout] | [INFO] [stdout] 269 | mime_types: rstr!((*(*self.ctx).iformat).mime_type).to_string(), [INFO] [stdout] | --------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `rstr` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_packet_alloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:278:23 [INFO] [stdout] | [INFO] [stdout] 278 | let mut pkt = av_packet_alloc(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/demux.rs:277:5 [INFO] [stdout] | [INFO] [stdout] 277 | pub unsafe fn get_packet(&mut self) -> Result<(*mut AVPacket, *mut AVStream), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_read_frame` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:279:19 [INFO] [stdout] | [INFO] [stdout] 279 | let ret = av_read_frame(self.ctx, pkt); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_packet_free` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:281:13 [INFO] [stdout] | [INFO] [stdout] 281 | av_packet_free(&mut pkt); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `demux::Demuxer::get_stream` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:286:22 [INFO] [stdout] | [INFO] [stdout] 286 | let stream = self.get_stream((*pkt).stream_index as _)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:286:38 [INFO] [stdout] | [INFO] [stdout] 286 | let stream = self.get_stream((*pkt).stream_index as _)?; [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:287:9 [INFO] [stdout] | [INFO] [stdout] 287 | (*pkt).time_base = (*stream).time_base; [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:287:28 [INFO] [stdout] | [INFO] [stdout] 287 | (*pkt).time_base = (*stream).time_base; [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:220:33 [INFO] [stdout] | [INFO] [stdout] 220 | format: (*(*stream).codecpar).format as _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:220:35 [INFO] [stdout] | [INFO] [stdout] 220 | format: (*(*stream).codecpar).format as _, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:223:38 [INFO] [stdout] | [INFO] [stdout] 223 | start_time: ((*stream).start_time as f64 * q) as f32, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:230:32 [INFO] [stdout] | [INFO] [stdout] 230 | index: (*stream).index as _, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:231:32 [INFO] [stdout] | [INFO] [stdout] 231 | codec: (*(*stream).codecpar).codec_id as _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:231:34 [INFO] [stdout] | [INFO] [stdout] 231 | codec: (*(*stream).codecpar).codec_id as _, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:233:32 [INFO] [stdout] | [INFO] [stdout] 233 | width: (*(*stream).codecpar).width as _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:233:34 [INFO] [stdout] | [INFO] [stdout] 233 | width: (*(*stream).codecpar).width as _, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:234:33 [INFO] [stdout] | [INFO] [stdout] 234 | height: (*(*stream).codecpar).height as _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:234:35 [INFO] [stdout] | [INFO] [stdout] 234 | height: (*(*stream).codecpar).height as _, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:236:33 [INFO] [stdout] | [INFO] [stdout] 236 | format: (*(*stream).codecpar).format as _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:236:35 [INFO] [stdout] | [INFO] [stdout] 236 | format: (*(*stream).codecpar).format as _, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:237:38 [INFO] [stdout] | [INFO] [stdout] 237 | sample_rate: (*(*stream).codecpar).sample_rate as _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:237:40 [INFO] [stdout] | [INFO] [stdout] 237 | sample_rate: (*(*stream).codecpar).sample_rate as _, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:238:35 [INFO] [stdout] | [INFO] [stdout] 238 | channels: (*(*stream).codecpar).ch_layout.nb_channels as _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:238:37 [INFO] [stdout] | [INFO] [stdout] 238 | channels: (*(*stream).codecpar).ch_layout.nb_channels as _, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:239:38 [INFO] [stdout] | [INFO] [stdout] 239 | start_time: ((*stream).start_time as f64 * q) as f32, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:246:32 [INFO] [stdout] | [INFO] [stdout] 246 | index: (*stream).index as _, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:247:32 [INFO] [stdout] | [INFO] [stdout] 247 | codec: (*(*stream).codecpar).codec_id as _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:247:34 [INFO] [stdout] | [INFO] [stdout] 247 | codec: (*(*stream).codecpar).codec_id as _, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:255:38 [INFO] [stdout] | [INFO] [stdout] 255 | start_time: ((*stream).start_time as f64 * q) as f32, [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:266:23 [INFO] [stdout] | [INFO] [stdout] 266 | duration: (*self.ctx).duration as f32 / AV_TIME_BASE as f32, [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:267:22 [INFO] [stdout] | [INFO] [stdout] 267 | bitrate: (*self.ctx).bit_rate as usize, [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:268:27 [INFO] [stdout] | [INFO] [stdout] 268 | format: rstr!((*(*self.ctx).iformat).name).to_string(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:268:29 [INFO] [stdout] | [INFO] [stdout] 268 | format: rstr!((*(*self.ctx).iformat).name).to_string(), [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | core::ffi::CStr::from_ptr($str).to_str().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/demux.rs:268:21 [INFO] [stdout] | [INFO] [stdout] 268 | format: rstr!((*(*self.ctx).iformat).name).to_string(), [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `rstr` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:269:31 [INFO] [stdout] | [INFO] [stdout] 269 | mime_types: rstr!((*(*self.ctx).iformat).mime_type).to_string(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:269:33 [INFO] [stdout] | [INFO] [stdout] 269 | mime_types: rstr!((*(*self.ctx).iformat).mime_type).to_string(), [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | core::ffi::CStr::from_ptr($str).to_str().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/demux.rs:269:25 [INFO] [stdout] | [INFO] [stdout] 269 | mime_types: rstr!((*(*self.ctx).iformat).mime_type).to_string(), [INFO] [stdout] | --------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `rstr` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_packet_alloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:278:23 [INFO] [stdout] | [INFO] [stdout] 278 | let mut pkt = av_packet_alloc(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/demux.rs:277:5 [INFO] [stdout] | [INFO] [stdout] 277 | pub unsafe fn get_packet(&mut self) -> Result<(*mut AVPacket, *mut AVStream), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_read_frame` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:279:19 [INFO] [stdout] | [INFO] [stdout] 279 | let ret = av_read_frame(self.ctx, pkt); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:296:21 [INFO] [stdout] | [INFO] [stdout] 296 | if index >= (*self.ctx).nb_streams as _ { [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/demux.rs:292:5 [INFO] [stdout] | [INFO] [stdout] 292 | pub unsafe fn get_stream(&mut self, index: usize) -> Result<*mut AVStream, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:299:12 [INFO] [stdout] | [INFO] [stdout] 299 | Ok(*(*self.ctx).streams.add(index)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:299:13 [INFO] [stdout] | [INFO] [stdout] 299 | Ok(*(*self.ctx).streams.add(index)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:299:13 [INFO] [stdout] | [INFO] [stdout] 299 | Ok(*(*self.ctx).streams.add(index)) [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_packet_free` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:281:13 [INFO] [stdout] | [INFO] [stdout] 281 | av_packet_free(&mut pkt); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `demux::Demuxer::get_stream` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:286:22 [INFO] [stdout] | [INFO] [stdout] 286 | let stream = self.get_stream((*pkt).stream_index as _)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:286:38 [INFO] [stdout] | [INFO] [stdout] 286 | let stream = self.get_stream((*pkt).stream_index as _)?; [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:287:9 [INFO] [stdout] | [INFO] [stdout] 287 | (*pkt).time_base = (*stream).time_base; [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:287:28 [INFO] [stdout] | [INFO] [stdout] 287 | (*pkt).time_base = (*stream).time_base; [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 111 | (*self.ctx).bit_rate = bitrate; [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/encode.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | pub unsafe fn with_bitrate(self, bitrate: i64) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:296:21 [INFO] [stdout] | [INFO] [stdout] 296 | if index >= (*self.ctx).nb_streams as _ { [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/demux.rs:292:5 [INFO] [stdout] | [INFO] [stdout] 292 | pub unsafe fn get_stream(&mut self, index: usize) -> Result<*mut AVStream, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:299:12 [INFO] [stdout] | [INFO] [stdout] 299 | Ok(*(*self.ctx).streams.add(index)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:299:13 [INFO] [stdout] | [INFO] [stdout] 299 | Ok(*(*self.ctx).streams.add(index)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/demux.rs:299:13 [INFO] [stdout] | [INFO] [stdout] 299 | Ok(*(*self.ctx).streams.add(index)) [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 111 | (*self.ctx).bit_rate = bitrate; [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/encode.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | pub unsafe fn with_bitrate(self, bitrate: i64) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:117:12 [INFO] [stdout] | [INFO] [stdout] 117 | if (*self.ctx).time_base.num != 1 || (*self.ctx).time_base.den != 1 { [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/encode.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | pub unsafe fn with_sample_rate(self, rate: i32) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:117:46 [INFO] [stdout] | [INFO] [stdout] 117 | if (*self.ctx).time_base.num != 1 || (*self.ctx).time_base.den != 1 { [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | (*self.ctx).sample_rate = rate; [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:121:9 [INFO] [stdout] | [INFO] [stdout] 121 | (*self.ctx).time_base = AVRational { num: 1, den: rate }; [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:127:9 [INFO] [stdout] | [INFO] [stdout] 127 | (*self.ctx).width = width; [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/encode.rs:126:5 [INFO] [stdout] | [INFO] [stdout] 126 | pub unsafe fn with_width(self, width: i32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 133 | (*self.ctx).height = height; [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/encode.rs:132:5 [INFO] [stdout] | [INFO] [stdout] 132 | pub unsafe fn with_height(self, height: i32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:139:9 [INFO] [stdout] | [INFO] [stdout] 139 | (*self.ctx).level = level; [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/encode.rs:138:5 [INFO] [stdout] | [INFO] [stdout] 138 | pub unsafe fn with_level(self, level: i32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | (*self.ctx).profile = profile; [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/encode.rs:144:5 [INFO] [stdout] | [INFO] [stdout] 144 | pub unsafe fn with_profile(self, profile: i32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:151:12 [INFO] [stdout] | [INFO] [stdout] 151 | if (*self.ctx).time_base.num != 1 || (*self.ctx).time_base.den != 1 { [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/encode.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 150 | pub unsafe fn with_framerate(self, fps: f32) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:151:46 [INFO] [stdout] | [INFO] [stdout] 151 | if (*self.ctx).time_base.num != 1 || (*self.ctx).time_base.den != 1 { [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_d2q` is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:154:17 [INFO] [stdout] | [INFO] [stdout] 154 | let q = av_d2q(fps as f64, 90_000); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:155:9 [INFO] [stdout] | [INFO] [stdout] 155 | (*self.ctx).framerate = q; [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:156:9 [INFO] [stdout] | [INFO] [stdout] 156 | (*self.ctx).time_base = av_inv_q(q); [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_inv_q` is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:156:33 [INFO] [stdout] | [INFO] [stdout] 156 | (*self.ctx).time_base = av_inv_q(q); [INFO] [stdout] | ^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:162:9 [INFO] [stdout] | [INFO] [stdout] 162 | (*self.ctx).pix_fmt = fmt; [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/encode.rs:161:5 [INFO] [stdout] | [INFO] [stdout] 161 | pub unsafe fn with_pix_fmt(self, fmt: AVPixelFormat) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:117:12 [INFO] [stdout] | [INFO] [stdout] 117 | if (*self.ctx).time_base.num != 1 || (*self.ctx).time_base.den != 1 { [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/encode.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | pub unsafe fn with_sample_rate(self, rate: i32) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:117:46 [INFO] [stdout] | [INFO] [stdout] 117 | if (*self.ctx).time_base.num != 1 || (*self.ctx).time_base.den != 1 { [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | (*self.ctx).sample_rate = rate; [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:121:9 [INFO] [stdout] | [INFO] [stdout] 121 | (*self.ctx).time_base = AVRational { num: 1, den: rate }; [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:127:9 [INFO] [stdout] | [INFO] [stdout] 127 | (*self.ctx).width = width; [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/encode.rs:126:5 [INFO] [stdout] | [INFO] [stdout] 126 | pub unsafe fn with_width(self, width: i32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 133 | (*self.ctx).height = height; [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/encode.rs:132:5 [INFO] [stdout] | [INFO] [stdout] 132 | pub unsafe fn with_height(self, height: i32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:139:9 [INFO] [stdout] | [INFO] [stdout] 139 | (*self.ctx).level = level; [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/encode.rs:138:5 [INFO] [stdout] | [INFO] [stdout] 138 | pub unsafe fn with_level(self, level: i32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | (*self.ctx).profile = profile; [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/encode.rs:144:5 [INFO] [stdout] | [INFO] [stdout] 144 | pub unsafe fn with_profile(self, profile: i32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:151:12 [INFO] [stdout] | [INFO] [stdout] 151 | if (*self.ctx).time_base.num != 1 || (*self.ctx).time_base.den != 1 { [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/encode.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 150 | pub unsafe fn with_framerate(self, fps: f32) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:151:46 [INFO] [stdout] | [INFO] [stdout] 151 | if (*self.ctx).time_base.num != 1 || (*self.ctx).time_base.den != 1 { [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_d2q` is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:154:17 [INFO] [stdout] | [INFO] [stdout] 154 | let q = av_d2q(fps as f64, 90_000); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:155:9 [INFO] [stdout] | [INFO] [stdout] 155 | (*self.ctx).framerate = q; [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:156:9 [INFO] [stdout] | [INFO] [stdout] 156 | (*self.ctx).time_base = av_inv_q(q); [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_inv_q` is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:156:33 [INFO] [stdout] | [INFO] [stdout] 156 | (*self.ctx).time_base = av_inv_q(q); [INFO] [stdout] | ^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:162:9 [INFO] [stdout] | [INFO] [stdout] 162 | (*self.ctx).pix_fmt = fmt; [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/encode.rs:161:5 [INFO] [stdout] | [INFO] [stdout] 161 | pub unsafe fn with_pix_fmt(self, fmt: AVPixelFormat) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:168:9 [INFO] [stdout] | [INFO] [stdout] 168 | (*self.ctx).sample_fmt = fmt; [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/encode.rs:167:5 [INFO] [stdout] | [INFO] [stdout] 167 | pub unsafe fn with_sample_format(self, fmt: AVSampleFormat) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:174:9 [INFO] [stdout] | [INFO] [stdout] 174 | (*self.ctx).ch_layout = layout; [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/encode.rs:173:5 [INFO] [stdout] | [INFO] [stdout] 173 | pub unsafe fn with_channel_layout(self, layout: AVChannelLayout) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_channel_layout_default` is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:181:9 [INFO] [stdout] | [INFO] [stdout] 181 | av_channel_layout_default(&mut layout, channels); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/encode.rs:179:5 [INFO] [stdout] | [INFO] [stdout] 179 | pub unsafe fn with_default_channel_layout(self, channels: i32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:182:9 [INFO] [stdout] | [INFO] [stdout] 182 | (*self.ctx).ch_layout = layout; [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:168:9 [INFO] [stdout] | [INFO] [stdout] 168 | (*self.ctx).sample_fmt = fmt; [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/encode.rs:167:5 [INFO] [stdout] | [INFO] [stdout] 167 | pub unsafe fn with_sample_format(self, fmt: AVSampleFormat) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:174:9 [INFO] [stdout] | [INFO] [stdout] 174 | (*self.ctx).ch_layout = layout; [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/encode.rs:173:5 [INFO] [stdout] | [INFO] [stdout] 173 | pub unsafe fn with_channel_layout(self, layout: AVChannelLayout) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_channel_layout_default` is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:181:9 [INFO] [stdout] | [INFO] [stdout] 181 | av_channel_layout_default(&mut layout, channels); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/encode.rs:179:5 [INFO] [stdout] | [INFO] [stdout] 179 | pub unsafe fn with_default_channel_layout(self, channels: i32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `options_to_dict` is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:200:13 [INFO] [stdout] | [INFO] [stdout] 200 | options_to_dict(options)? [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/encode.rs:196:5 [INFO] [stdout] | [INFO] [stdout] 196 | pub unsafe fn open(self, options: Option>) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avcodec_open2` is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:204:19 [INFO] [stdout] | [INFO] [stdout] 204 | let ret = avcodec_open2(self.ctx, self.codec, &mut options); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:220:13 [INFO] [stdout] | [INFO] [stdout] 220 | (*frame).pict_type = AV_PICTURE_TYPE_NONE; [INFO] [stdout] | ^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/encode.rs:211:5 [INFO] [stdout] | [INFO] [stdout] 211 | / pub unsafe fn encode_frame( [INFO] [stdout] 212 | | &mut self, [INFO] [stdout] 213 | | frame: *mut AVFrame, [INFO] [stdout] 214 | | ) -> Result, Error> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avcodec_send_frame` is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:223:23 [INFO] [stdout] | [INFO] [stdout] 223 | let mut ret = avcodec_send_frame(self.ctx, frame); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_packet_alloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:229:27 [INFO] [stdout] | [INFO] [stdout] 229 | let mut pkt = av_packet_alloc(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avcodec_receive_packet` is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:230:19 [INFO] [stdout] | [INFO] [stdout] 230 | ret = avcodec_receive_packet(self.ctx, pkt); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_packet_free` is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:232:17 [INFO] [stdout] | [INFO] [stdout] 232 | av_packet_free(&mut pkt); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:238:13 [INFO] [stdout] | [INFO] [stdout] 238 | (*pkt).time_base = (*self.ctx).time_base; [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:238:32 [INFO] [stdout] | [INFO] [stdout] 238 | (*pkt).time_base = (*self.ctx).time_base; [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:239:16 [INFO] [stdout] | [INFO] [stdout] 239 | if (*pkt).duration == 0 { [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:240:17 [INFO] [stdout] | [INFO] [stdout] 240 | (*pkt).duration = 1; // Set duration to 1 for video packets (CFR) if not already set [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:243:17 [INFO] [stdout] | [INFO] [stdout] 243 | (*pkt).stream_index = idx; [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:182:9 [INFO] [stdout] | [INFO] [stdout] 182 | (*self.ctx).ch_layout = layout; [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `options_to_dict` is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:200:13 [INFO] [stdout] | [INFO] [stdout] 200 | options_to_dict(options)? [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/encode.rs:196:5 [INFO] [stdout] | [INFO] [stdout] 196 | pub unsafe fn open(self, options: Option>) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avcodec_open2` is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:204:19 [INFO] [stdout] | [INFO] [stdout] 204 | let ret = avcodec_open2(self.ctx, self.codec, &mut options); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:220:13 [INFO] [stdout] | [INFO] [stdout] 220 | (*frame).pict_type = AV_PICTURE_TYPE_NONE; [INFO] [stdout] | ^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/encode.rs:211:5 [INFO] [stdout] | [INFO] [stdout] 211 | / pub unsafe fn encode_frame( [INFO] [stdout] 212 | | &mut self, [INFO] [stdout] 213 | | frame: *mut AVFrame, [INFO] [stdout] 214 | | ) -> Result, Error> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avcodec_send_frame` is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:223:23 [INFO] [stdout] | [INFO] [stdout] 223 | let mut ret = avcodec_send_frame(self.ctx, frame); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_packet_alloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:229:27 [INFO] [stdout] | [INFO] [stdout] 229 | let mut pkt = av_packet_alloc(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avcodec_receive_packet` is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:230:19 [INFO] [stdout] | [INFO] [stdout] 230 | ret = avcodec_receive_packet(self.ctx, pkt); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_packet_free` is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:232:17 [INFO] [stdout] | [INFO] [stdout] 232 | av_packet_free(&mut pkt); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:238:13 [INFO] [stdout] | [INFO] [stdout] 238 | (*pkt).time_base = (*self.ctx).time_base; [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:238:32 [INFO] [stdout] | [INFO] [stdout] 238 | (*pkt).time_base = (*self.ctx).time_base; [INFO] [stdout] | ^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:239:16 [INFO] [stdout] | [INFO] [stdout] 239 | if (*pkt).duration == 0 { [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:240:17 [INFO] [stdout] | [INFO] [stdout] 240 | (*pkt).duration = 1; // Set duration to 1 for video packets (CFR) if not already set [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:243:17 [INFO] [stdout] | [INFO] [stdout] 243 | (*pkt).stream_index = idx; [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `encode::Encoder::encode_frame` is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:255:20 [INFO] [stdout] | [INFO] [stdout] 255 | for pkt in self.encode_frame(frame)? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/encode.rs:252:5 [INFO] [stdout] | [INFO] [stdout] 252 | pub unsafe fn save_picture(mut self, frame: *mut AVFrame, dst: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:256:29 [INFO] [stdout] | [INFO] [stdout] 256 | let pkt_slice = slice::from_raw_parts((*pkt).data, (*pkt).size as usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:256:51 [INFO] [stdout] | [INFO] [stdout] 256 | let pkt_slice = slice::from_raw_parts((*pkt).data, (*pkt).size as usize); [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:256:64 [INFO] [stdout] | [INFO] [stdout] 256 | let pkt_slice = slice::from_raw_parts((*pkt).data, (*pkt).size as usize); [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `encode::Encoder::encode_frame` is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:259:20 [INFO] [stdout] | [INFO] [stdout] 259 | for pkt in self.encode_frame(ptr::null_mut())? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:260:29 [INFO] [stdout] | [INFO] [stdout] 260 | let pkt_slice = slice::from_raw_parts((*pkt).data, (*pkt).size as usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:260:51 [INFO] [stdout] | [INFO] [stdout] 260 | let pkt_slice = slice::from_raw_parts((*pkt).data, (*pkt).size as usize); [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:260:64 [INFO] [stdout] | [INFO] [stdout] 260 | let pkt_slice = slice::from_raw_parts((*pkt).data, (*pkt).size as usize); [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `encode::Encoder::encode_frame` is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:255:20 [INFO] [stdout] | [INFO] [stdout] 255 | for pkt in self.encode_frame(frame)? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/encode.rs:252:5 [INFO] [stdout] | [INFO] [stdout] 252 | pub unsafe fn save_picture(mut self, frame: *mut AVFrame, dst: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:256:29 [INFO] [stdout] | [INFO] [stdout] 256 | let pkt_slice = slice::from_raw_parts((*pkt).data, (*pkt).size as usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:256:51 [INFO] [stdout] | [INFO] [stdout] 256 | let pkt_slice = slice::from_raw_parts((*pkt).data, (*pkt).size as usize); [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:256:64 [INFO] [stdout] | [INFO] [stdout] 256 | let pkt_slice = slice::from_raw_parts((*pkt).data, (*pkt).size as usize); [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `encode::Encoder::encode_frame` is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:259:20 [INFO] [stdout] | [INFO] [stdout] 259 | for pkt in self.encode_frame(ptr::null_mut())? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:260:29 [INFO] [stdout] | [INFO] [stdout] 260 | let pkt_slice = slice::from_raw_parts((*pkt).data, (*pkt).size as usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:260:51 [INFO] [stdout] | [INFO] [stdout] 260 | let pkt_slice = slice::from_raw_parts((*pkt).data, (*pkt).size as usize); [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/encode.rs:260:64 [INFO] [stdout] | [INFO] [stdout] 260 | let pkt_slice = slice::from_raw_parts((*pkt).data, (*pkt).size as usize); [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avfilter_graph_alloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:33:19 [INFO] [stdout] | [INFO] [stdout] 33 | let ctx = avfilter_graph_alloc(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/filter.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub unsafe fn parse(graph: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avfilter_inout_alloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:34:22 [INFO] [stdout] | [INFO] [stdout] 34 | let inputs = avfilter_inout_alloc(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avfilter_inout_alloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:35:23 [INFO] [stdout] | [INFO] [stdout] 35 | let outputs = avfilter_inout_alloc(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avfilter_get_by_name` is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:36:19 [INFO] [stdout] | [INFO] [stdout] 36 | let src = avfilter_get_by_name(cstr!("buffer")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avfilter_get_by_name` is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:37:19 [INFO] [stdout] | [INFO] [stdout] 37 | let dst = avfilter_get_by_name(cstr!("buffersink")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avfilter_graph_create_filter` is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:40:19 [INFO] [stdout] | [INFO] [stdout] 40 | let ret = avfilter_graph_create_filter( [INFO] [stdout] | ___________________^ [INFO] [stdout] 41 | | &mut src_ctx, [INFO] [stdout] 42 | | src, [INFO] [stdout] 43 | | cstr!("in"), [INFO] [stdout] ... | [INFO] [stdout] 46 | | ctx, [INFO] [stdout] 47 | | ); [INFO] [stdout] | |_________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avfilter_graph_create_filter` is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:50:19 [INFO] [stdout] | [INFO] [stdout] 50 | let ret = avfilter_graph_create_filter( [INFO] [stdout] | ___________________^ [INFO] [stdout] 51 | | &mut dst_ctx, [INFO] [stdout] 52 | | dst, [INFO] [stdout] 53 | | cstr!("out"), [INFO] [stdout] ... | [INFO] [stdout] 56 | | ctx, [INFO] [stdout] 57 | | ); [INFO] [stdout] | |_________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | (*outputs).name = av_strdup((*dst).name); [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_strdup` is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:60:27 [INFO] [stdout] | [INFO] [stdout] 60 | (*outputs).name = av_strdup((*dst).name); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:60:37 [INFO] [stdout] | [INFO] [stdout] 60 | (*outputs).name = av_strdup((*dst).name); [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | (*outputs).filter_ctx = dst_ctx; [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | (*outputs).pad_idx = 0; [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | (*outputs).next = ptr::null_mut(); [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | (*inputs).name = av_strdup((*src).name); [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_strdup` is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:65:26 [INFO] [stdout] | [INFO] [stdout] 65 | (*inputs).name = av_strdup((*src).name); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:65:36 [INFO] [stdout] | [INFO] [stdout] 65 | (*inputs).name = av_strdup((*src).name); [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | (*inputs).filter_ctx = src_ctx; [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | (*inputs).pad_idx = 0; [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | (*inputs).next = ptr::null_mut(); [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avfilter_graph_parse` is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:70:19 [INFO] [stdout] | [INFO] [stdout] 70 | let ret = avfilter_graph_parse(ctx, cstr!(graph), inputs, outputs, ptr::null_mut()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `filter::Filter::build` is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | ret.build()?; [INFO] [stdout] | ^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avfilter_graph_alloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:33:19 [INFO] [stdout] | [INFO] [stdout] 33 | let ctx = avfilter_graph_alloc(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/filter.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub unsafe fn parse(graph: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avfilter_inout_alloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:34:22 [INFO] [stdout] | [INFO] [stdout] 34 | let inputs = avfilter_inout_alloc(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avfilter_inout_alloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:35:23 [INFO] [stdout] | [INFO] [stdout] 35 | let outputs = avfilter_inout_alloc(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avfilter_get_by_name` is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:36:19 [INFO] [stdout] | [INFO] [stdout] 36 | let src = avfilter_get_by_name(cstr!("buffer")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avfilter_get_by_name` is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:37:19 [INFO] [stdout] | [INFO] [stdout] 37 | let dst = avfilter_get_by_name(cstr!("buffersink")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avfilter_graph_create_filter` is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:40:19 [INFO] [stdout] | [INFO] [stdout] 40 | let ret = avfilter_graph_create_filter( [INFO] [stdout] | ___________________^ [INFO] [stdout] 41 | | &mut src_ctx, [INFO] [stdout] 42 | | src, [INFO] [stdout] 43 | | cstr!("in"), [INFO] [stdout] ... | [INFO] [stdout] 46 | | ctx, [INFO] [stdout] 47 | | ); [INFO] [stdout] | |_________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avfilter_graph_create_filter` is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:50:19 [INFO] [stdout] | [INFO] [stdout] 50 | let ret = avfilter_graph_create_filter( [INFO] [stdout] | ___________________^ [INFO] [stdout] 51 | | &mut dst_ctx, [INFO] [stdout] 52 | | dst, [INFO] [stdout] 53 | | cstr!("out"), [INFO] [stdout] ... | [INFO] [stdout] 56 | | ctx, [INFO] [stdout] 57 | | ); [INFO] [stdout] | |_________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | (*outputs).name = av_strdup((*dst).name); [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_strdup` is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:60:27 [INFO] [stdout] | [INFO] [stdout] 60 | (*outputs).name = av_strdup((*dst).name); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:60:37 [INFO] [stdout] | [INFO] [stdout] 60 | (*outputs).name = av_strdup((*dst).name); [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | (*outputs).filter_ctx = dst_ctx; [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | (*outputs).pad_idx = 0; [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | (*outputs).next = ptr::null_mut(); [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | (*inputs).name = av_strdup((*src).name); [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::av_strdup` is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:65:26 [INFO] [stdout] | [INFO] [stdout] 65 | (*inputs).name = av_strdup((*src).name); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:65:36 [INFO] [stdout] | [INFO] [stdout] 65 | (*inputs).name = av_strdup((*src).name); [INFO] [stdout] | ^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | (*inputs).filter_ctx = src_ctx; [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | (*inputs).pad_idx = 0; [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | (*inputs).next = ptr::null_mut(); [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avfilter_graph_parse` is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:70:19 [INFO] [stdout] | [INFO] [stdout] 70 | let ret = avfilter_graph_parse(ctx, cstr!(graph), inputs, outputs, ptr::null_mut()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `filter::Filter::build` is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | ret.build()?; [INFO] [stdout] | ^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avfilter_graph_dump` is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:102:23 [INFO] [stdout] | [INFO] [stdout] 102 | let d = rstr!(avfilter_graph_dump(self.graph, ptr::null_mut())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/filter.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 101 | pub unsafe fn build(&mut self) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avfilter_graph_dump` is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:102:23 [INFO] [stdout] | [INFO] [stdout] 102 | let d = rstr!(avfilter_graph_dump(self.graph, ptr::null_mut())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/filter.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 101 | pub unsafe fn build(&mut self) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | core::ffi::CStr::from_ptr($str).to_str().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/filter.rs:102:17 [INFO] [stdout] | [INFO] [stdout] 102 | let d = rstr!(avfilter_graph_dump(self.graph, ptr::null_mut())); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `rstr` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avfilter_graph_dump` is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:102:23 [INFO] [stdout] | [INFO] [stdout] 102 | let d = rstr!(avfilter_graph_dump(self.graph, ptr::null_mut())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avfilter_graph_config` is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:105:19 [INFO] [stdout] | [INFO] [stdout] 105 | let ret = avfilter_graph_config(self.graph, ptr::null_mut()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | core::ffi::CStr::from_ptr($str).to_str().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/filter.rs:102:17 [INFO] [stdout] | [INFO] [stdout] 102 | let d = rstr!(avfilter_graph_dump(self.graph, ptr::null_mut())); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: this warning originates in the macro `rstr` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avfilter_graph_dump` is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:102:23 [INFO] [stdout] | [INFO] [stdout] 102 | let d = rstr!(avfilter_graph_dump(self.graph, ptr::null_mut())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avfilter_graph_config` is unsafe and requires unsafe block [INFO] [stdout] --> src/filter.rs:105:19 [INFO] [stdout] | [INFO] [stdout] 105 | let ret = avfilter_graph_config(self.graph, ptr::null_mut()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `slimbox::SlimMut::<'_, T>::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:29:38 [INFO] [stdout] | [INFO] [stdout] 29 | let mut writer: SlimMut<'_, T> = SlimMut::from_raw(opaque); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mux.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | / unsafe extern "C" fn write_data( [INFO] [stdout] 22 | | opaque: *mut libc::c_void, [INFO] [stdout] 23 | | buffer: WriteDataPtr, [INFO] [stdout] 24 | | size: libc::c_int, [INFO] [stdout] 25 | | ) -> libc::c_int [INFO] [stdout] 26 | | where [INFO] [stdout] 27 | | T: Write + 'static + ?Sized, [INFO] [stdout] | |________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:30:16 [INFO] [stdout] | [INFO] [stdout] 30 | let data = slice::from_raw_parts(buffer, size as usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `slimbox::SlimMut::<'_, T>::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:29:38 [INFO] [stdout] | [INFO] [stdout] 29 | let mut writer: SlimMut<'_, T> = SlimMut::from_raw(opaque); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mux.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | / unsafe extern "C" fn write_data( [INFO] [stdout] 22 | | opaque: *mut libc::c_void, [INFO] [stdout] 23 | | buffer: WriteDataPtr, [INFO] [stdout] 24 | | size: libc::c_int, [INFO] [stdout] 25 | | ) -> libc::c_int [INFO] [stdout] 26 | | where [INFO] [stdout] 27 | | T: Write + 'static + ?Sized, [INFO] [stdout] | |________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `slimbox::SlimMut::<'_, T>::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:41:60 [INFO] [stdout] | [INFO] [stdout] 41 | let mut writer: SlimMut<'_, dyn WriteSeek + 'static> = SlimMut::from_raw(opaque); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mux.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 40 | unsafe extern "C" fn seek_data(opaque: *mut libc::c_void, offset: i64, whence: libc::c_int) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:30:16 [INFO] [stdout] | [INFO] [stdout] 30 | let data = slice::from_raw_parts(buffer, size as usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `slimbox::SlimMut::<'_, T>::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:41:60 [INFO] [stdout] | [INFO] [stdout] 41 | let mut writer: SlimMut<'_, dyn WriteSeek + 'static> = SlimMut::from_raw(opaque); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mux.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 40 | unsafe extern "C" fn seek_data(opaque: *mut libc::c_void, offset: i64, whence: libc::c_int) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avformat_alloc_output_context2` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:144:19 [INFO] [stdout] | [INFO] [stdout] 144 | let ret = avformat_alloc_output_context2( [INFO] [stdout] | ___________________^ [INFO] [stdout] 145 | | ctx, [INFO] [stdout] 146 | | ptr::null_mut(), [INFO] [stdout] 147 | | if let Some(format) = format { [INFO] [stdout] ... | [INFO] [stdout] 156 | | }, [INFO] [stdout] 157 | | ); [INFO] [stdout] | |_________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mux.rs:135:5 [INFO] [stdout] | [INFO] [stdout] 135 | / unsafe fn init_ctx( [INFO] [stdout] 136 | | ctx: &mut *mut AVFormatContext, [INFO] [stdout] 137 | | dst: Option<&str>, [INFO] [stdout] 138 | | format: Option<&str>, [INFO] [stdout] 139 | | ) -> Result<()> { [INFO] [stdout] | |___________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avformat_alloc_output_context2` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:144:19 [INFO] [stdout] | [INFO] [stdout] 144 | let ret = avformat_alloc_output_context2( [INFO] [stdout] | ___________________^ [INFO] [stdout] 145 | | ctx, [INFO] [stdout] 146 | | ptr::null_mut(), [INFO] [stdout] 147 | | if let Some(format) = format { [INFO] [stdout] ... | [INFO] [stdout] 156 | | }, [INFO] [stdout] 157 | | ); [INFO] [stdout] | |_________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mux.rs:135:5 [INFO] [stdout] | [INFO] [stdout] 135 | / unsafe fn init_ctx( [INFO] [stdout] 136 | | ctx: &mut *mut AVFormatContext, [INFO] [stdout] 137 | | dst: Option<&str>, [INFO] [stdout] 138 | | format: Option<&str>, [INFO] [stdout] 139 | | ) -> Result<()> { [INFO] [stdout] | |___________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:161:12 [INFO] [stdout] | [INFO] [stdout] 161 | if (*(**ctx).oformat).flags & AVFMT_GLOBALHEADER != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:161:14 [INFO] [stdout] | [INFO] [stdout] 161 | if (*(**ctx).oformat).flags & AVFMT_GLOBALHEADER != 0 { [INFO] [stdout] | ^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:162:13 [INFO] [stdout] | [INFO] [stdout] 162 | (**ctx).flags |= AV_CODEC_FLAG_GLOBAL_HEADER as libc::c_int; [INFO] [stdout] | ^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:161:12 [INFO] [stdout] | [INFO] [stdout] 161 | if (*(**ctx).oformat).flags & AVFMT_GLOBALHEADER != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:161:14 [INFO] [stdout] | [INFO] [stdout] 161 | if (*(**ctx).oformat).flags & AVFMT_GLOBALHEADER != 0 { [INFO] [stdout] | ^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `mux::MuxerBuilder::init_ctx` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:173:9 [INFO] [stdout] | [INFO] [stdout] 173 | Self::init_ctx(&mut self.ctx, Some(path_str), format)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mux.rs:168:5 [INFO] [stdout] | [INFO] [stdout] 168 | / pub unsafe fn with_output_path<'a, T>(mut self, dst: T, format: Option<&'a str>) -> Result [INFO] [stdout] 169 | | where [INFO] [stdout] 170 | | T: Into<&'a str>, [INFO] [stdout] | |_________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `mux::MuxerBuilder::init_ctx` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:189:9 [INFO] [stdout] | [INFO] [stdout] 189 | Self::init_ctx(&mut self.ctx, None, format)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mux.rs:181:5 [INFO] [stdout] | [INFO] [stdout] 181 | / pub unsafe fn with_output_write_seek( [INFO] [stdout] 182 | | mut self, [INFO] [stdout] 183 | | writer: W, [INFO] [stdout] 184 | | format: Option<&str>, [INFO] [stdout] 185 | | ) -> Result [INFO] [stdout] 186 | | where [INFO] [stdout] 187 | | W: WriteSeek + 'static, [INFO] [stdout] | |_______________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:162:13 [INFO] [stdout] | [INFO] [stdout] 162 | (**ctx).flags |= AV_CODEC_FLAG_GLOBAL_HEADER as libc::c_int; [INFO] [stdout] | ^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `mux::MuxerBuilder::init_ctx` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:173:9 [INFO] [stdout] | [INFO] [stdout] 173 | Self::init_ctx(&mut self.ctx, Some(path_str), format)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mux.rs:168:5 [INFO] [stdout] | [INFO] [stdout] 168 | / pub unsafe fn with_output_path<'a, T>(mut self, dst: T, format: Option<&'a str>) -> Result [INFO] [stdout] 169 | | where [INFO] [stdout] 170 | | T: Into<&'a str>, [INFO] [stdout] | |_________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `mux::MuxerBuilder::init_ctx` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:189:9 [INFO] [stdout] | [INFO] [stdout] 189 | Self::init_ctx(&mut self.ctx, None, format)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mux.rs:181:5 [INFO] [stdout] | [INFO] [stdout] 181 | / pub unsafe fn with_output_write_seek( [INFO] [stdout] 182 | | mut self, [INFO] [stdout] 183 | | writer: W, [INFO] [stdout] 184 | | format: Option<&str>, [INFO] [stdout] 185 | | ) -> Result [INFO] [stdout] 186 | | where [INFO] [stdout] 187 | | W: WriteSeek + 'static, [INFO] [stdout] | |_______________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `mux::MuxerBuilder::init_ctx` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:200:9 [INFO] [stdout] | [INFO] [stdout] 200 | Self::init_ctx(&mut self.ctx, None, format)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mux.rs:196:5 [INFO] [stdout] | [INFO] [stdout] 196 | / pub unsafe fn with_output_write(mut self, writer: W, format: Option<&str>) -> Result [INFO] [stdout] 197 | | where [INFO] [stdout] 198 | | W: Write + 'static, [INFO] [stdout] | |___________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `mux::MuxerBuilder::init_ctx` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:200:9 [INFO] [stdout] | [INFO] [stdout] 200 | Self::init_ctx(&mut self.ctx, None, format)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mux.rs:196:5 [INFO] [stdout] | [INFO] [stdout] 196 | / pub unsafe fn with_output_write(mut self, writer: W, format: Option<&str>) -> Result [INFO] [stdout] 197 | | where [INFO] [stdout] 198 | | W: Write + 'static, [INFO] [stdout] | |___________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `mux::MuxerBuilder::add_stream_from_encoder` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:207:9 [INFO] [stdout] | [INFO] [stdout] 207 | Self::add_stream_from_encoder(self.ctx, encoder)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mux.rs:206:5 [INFO] [stdout] | [INFO] [stdout] 206 | pub unsafe fn with_stream_encoder(self, encoder: &Encoder) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `mux::MuxerBuilder::add_stream_from_encoder` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:207:9 [INFO] [stdout] | [INFO] [stdout] 207 | Self::add_stream_from_encoder(self.ctx, encoder)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mux.rs:206:5 [INFO] [stdout] | [INFO] [stdout] 206 | pub unsafe fn with_stream_encoder(self, encoder: &Encoder) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `mux::MuxerBuilder::add_copy_stream` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:213:9 [INFO] [stdout] | [INFO] [stdout] 213 | Self::add_copy_stream(self.ctx, in_stream)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mux.rs:212:5 [INFO] [stdout] | [INFO] [stdout] 212 | pub unsafe fn with_copy_stream(self, in_stream: *mut AVStream) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `mux::MuxerBuilder::add_copy_stream` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:213:9 [INFO] [stdout] | [INFO] [stdout] 213 | Self::add_copy_stream(self.ctx, in_stream)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/mux.rs:212:5 [INFO] [stdout] | [INFO] [stdout] 212 | pub unsafe fn with_copy_stream(self, in_stream: *mut AVStream) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `ffmpeg_sys_the_third::avformat_new_stream` is unsafe and requires unsafe block [INFO] [stdout] --> src/mux.rs:246:22 [WARN] too many lines in the log, truncating it