mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 07:48:38 +09:00
[aom] Fix stream info peeking
Backport upstream patch by Sebastian Alaiwan fixing aom_peek_stream_info after changes to the superblock location.
This commit is contained in:
parent
de3974b3c4
commit
ceb35852fa
1 changed files with 13 additions and 0 deletions
13
third_party/aom/av1/av1_dx_iface.c
vendored
13
third_party/aom/av1/av1_dx_iface.c
vendored
|
|
@ -218,6 +218,19 @@ static aom_codec_err_t decoder_peek_si_internal(
|
|||
data = clear_buffer;
|
||||
}
|
||||
|
||||
// skip a potential superframe index
|
||||
{
|
||||
uint32_t frame_sizes[8];
|
||||
int frame_count;
|
||||
int index_size = 0;
|
||||
aom_codec_err_t res = av1_parse_superframe_index(
|
||||
data, data_sz, frame_sizes, &frame_count, &index_size, NULL, NULL);
|
||||
if (res != AOM_CODEC_OK) return res;
|
||||
|
||||
data += index_size;
|
||||
data_sz -= index_size;
|
||||
}
|
||||
|
||||
{
|
||||
int show_frame;
|
||||
int error_resilient;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue