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:
Seungha Yang 2021-06-27 20:19:39 +09:00 committed by GStreamer Marge Bot
parent e548916d85
commit 6dbb9c705a

View file

@ -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;