Fix arm build and c_long unit test casts

- Add #[allow(dead_code)] on CellSpan::set_row in encoder::rec_view,
  which is only called from simd::x86_64 and simd::aarch64 and tripped
  #![deny(dead_code)] on scalar-only targets such as 32-bit ARM.

- Cast CM_RESULT_SUCCESS to c_long instead of i64 in c_api unit tests so
  --all-targets builds cleanly on ILP32 and LLP64 platforms.

Bug: 527969915
Change-Id: I65a9d8b1fe3d3d28ae9bb3e58e9088bd0a6c6cb2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/third_party/openh264rs/+/8828099
Reviewed-by: Frank Liberato <liberato@google.com>
Reviewed-by: Eugene Zemtsov <ezemtsov@google.com>
2 files changed
tree: 7dad21b1fecc4b75c31fd9b7eb1c5fe4f22c1b82
  1. benches/
  2. src/
  3. tests/
  4. tools/
  5. .gitignore
  6. build.rs
  7. Cargo.toml
  8. LICENSE_CHROMIUM
  9. LICENSE_CISCO
  10. OWNERS
  11. README.md
  12. rustfmt.toml
  13. sources.gni
README.md

openh264rs

Rust port of Cisco OpenH264 (H.264/AVC encoder and decoder). Designed as a source-level drop-in replacement for the C and C++ APIs of OpenH264.