mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-21 19:11:02 +00:00
Update to bitstream-io 2.5
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1864>
This commit is contained in:
parent
d057488a20
commit
120c62964d
4 changed files with 11 additions and 5 deletions
|
@ -383,8 +383,7 @@ outdated:
|
|||
- if: '$CI_PIPELINE_SOURCE == "schedule"'
|
||||
script:
|
||||
- cargo update --color=always
|
||||
# Ignore bitstream-io until we can update MSRV to 1.80
|
||||
- cargo outdated --color=always --root-deps-only --exit-code 1 -v -i bitstream-io
|
||||
- cargo outdated --color=always --root-deps-only --exit-code 1 -v
|
||||
|
||||
coverage:
|
||||
allow_failure: true
|
||||
|
|
4
Cargo.lock
generated
4
Cargo.lock
generated
|
@ -880,9 +880,9 @@ checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de"
|
|||
|
||||
[[package]]
|
||||
name = "bitstream-io"
|
||||
version = "2.3.0"
|
||||
version = "2.5.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "7c12d1856e42f0d817a835fe55853957c85c8c8a470114029143d3f12671446e"
|
||||
checksum = "b81e1519b0d82120d2fd469d5bfb2919a9361c48b02d82d04befc1cdd2002452"
|
||||
|
||||
[[package]]
|
||||
name = "block-buffer"
|
||||
|
|
|
@ -11,7 +11,7 @@ rust-version.workspace = true
|
|||
[dependencies]
|
||||
anyhow = "1"
|
||||
atomic_refcell = "0.1"
|
||||
bitstream-io = "2.1, < 2.4.0"
|
||||
bitstream-io = "2.4"
|
||||
byte-slice-cast = "1.2"
|
||||
chrono = { version = "0.4", default-features = false }
|
||||
gst = { workspace = true, features = ["v1_20"] }
|
||||
|
|
|
@ -139,6 +139,13 @@ impl<R: io::Read> BitRead for BoolDecoder<R> {
|
|||
BigEndian::read_signed(self, bits)
|
||||
}
|
||||
|
||||
fn read_signed_in<const BITS: u32, S>(&mut self) -> std::io::Result<S>
|
||||
where
|
||||
S: bitstream_io::SignedNumeric,
|
||||
{
|
||||
BigEndian::read_signed(self, BITS)
|
||||
}
|
||||
|
||||
fn read_to<V>(&mut self) -> std::io::Result<V>
|
||||
where
|
||||
V: bitstream_io::Primitive,
|
||||
|
|
Loading…
Reference in a new issue