dholroyd / h264-reader

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

Incorrect Parsing of Explicit Assignment Slice Groups #57

Closed wrv closed 8 months ago

wrv commented 1 year ago

Currently, a slice_group_map_type of 6 calls read_group_ids() which will use pic_size_in_map_units_minus1 as the bit-length to read each run_length_minus1 value, up to num_slice_groups times.

The pic_size_in_map_units_minus1 and num_slice_groups should be swapped to match the spec:

image