summaryrefslogtreecommitdiff
path: root/third_party
diff options
context:
space:
mode:
authortrav90 <travawine@palemoon.org>2018-10-18 19:41:52 -0500
committertrav90 <travawine@palemoon.org>2018-10-18 19:41:52 -0500
commit190e41f61b2e2e8ff77bc2dae7df3684be9714a8 (patch)
treec92ef0024aea8d9daa72712c377d2b82065b0694 /third_party
parent055de5cb0eef0410ef138b12f490e6b237c60278 (diff)
downloaduxp-190e41f61b2e2e8ff77bc2dae7df3684be9714a8.tar.gz
[aom] Fix stream info peeking
Backport upstream patch by Sebastian Alaiwan fixing aom_peek_stream_info after changes to the superblock location.
Diffstat (limited to 'third_party')
-rw-r--r--third_party/aom/av1/av1_dx_iface.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/third_party/aom/av1/av1_dx_iface.c b/third_party/aom/av1/av1_dx_iface.c
index c95a8f24e1..df2c81dc90 100644
--- a/third_party/aom/av1/av1_dx_iface.c
+++ b/third_party/aom/av1/av1_dx_iface.c
@@ -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;