Skip to content

Commit

Permalink
DecoderConfigDescriptor の reserved ビットの値は 1 にする
Browse files Browse the repository at this point in the history
  • Loading branch information
sile committed Dec 6, 2024
1 parent d4e9fdf commit 01e89b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/descriptors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ impl Encode for DecoderConfigDescriptor {
let mut payload = Vec::new();

self.object_type_indication.encode(&mut payload)?;
(self.stream_type.to_bits() | self.up_stream.to_bits()).encode(&mut payload)?;
(self.stream_type.to_bits() | self.up_stream.to_bits() | Uint::<u8, 1>::new(1).to_bits())
.encode(&mut payload)?;
payload.write_all(&self.buffer_size_db.to_bits().to_be_bytes()[1..])?;
self.max_bitrate.encode(&mut payload)?;
self.avg_bitrate.encode(&mut payload)?;
Expand Down

0 comments on commit 01e89b7

Please sign in to comment.