Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions av2/decoder/decodeframe.c
Original file line number Diff line number Diff line change
Expand Up @@ -9610,6 +9610,14 @@ int32_t av2_read_tilegroup_header(
send_first_tile_group_indication &= obu_type != OBU_BRIDGE_FRAME;
if (send_first_tile_group_indication)
is_first_tile_group = avm_rb_read_bit(rb);
// It is a requirement of bitstream conformance that SeenFrameHeader is not
// equal to is_first_tile_group.
if (pbi->seen_frame_header == is_first_tile_group) {
avm_internal_error(
&cm->error, AVM_CODEC_CORRUPT_FRAME,
"SeenFrameHeader (%d) is equal to is_first_tile_group (%d)",
pbi->seen_frame_header, is_first_tile_group);
}
*first_tile_group_in_frame = is_first_tile_group;

if (is_first_tile_group) {
Expand Down