dholroyd / h264-reader

Rust reader for H264 bitsream syntax
Apache License 2.0
73 stars 25 forks source link

Fix explicit assignment slice group parsing #65

Closed dholroyd closed 8 months ago

dholroyd commented 8 months ago

Fix variable-name confusion error.

According to the spec, the two values pic_size_in_map_units_minus1 and num_slice_groups_minus1 should be used the other way around. As pointed out by @wrv.

Fixes #57

Also, fix a nearby calculation which lacked ceil(). The spec asks for Ceil( Log2( num_slice_groups_minus1 + 1 ) )