mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-13 12:51:16 +00:00
av1parser: Fix tile size calculation
Remaining size should exclude already read "tile size bits". And see also "5.11.1. General tile group OBU syntax" Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2365>
This commit is contained in:
parent
e548916d85
commit
6dbb9c705a
1 changed files with 1 additions and 1 deletions
|
@ -4449,7 +4449,7 @@ gst_av1_parse_tile_group (GstAV1Parser * parser, GstBitReader * br,
|
|||
if (retval != GST_AV1_PARSER_OK)
|
||||
goto error;
|
||||
tile_size = tile_size_minus_1 + 1;
|
||||
sz -= tile_size - parser->state.tile_size_bytes;
|
||||
sz -= (tile_size + parser->state.tile_size_bytes);
|
||||
}
|
||||
|
||||
tile_group->entry[tile_num].tile_size = tile_size;
|
||||
|
|
Loading…
Reference in a new issue