ref: 2e991b1479431081bc1634ec91191763d11b05a4
parent: a03643231612257e894d44bcda8fac66ab1cba2a
author: Ronald S. Bultje <rsbultje@gmail.com>
date: Wed Oct 24 05:13:46 EDT 2018
Exit frame data decoding for OBU_FRAME if show_existing_frame=1 This is identical to what libaom does for such OBUs. It prevents us from doing block decoding, which doesn't make sense for such OBUs, and would result in using an uninitialized frame header during the decoding process. Fixes #94.
--- a/src/obu.c
+++ b/src/obu.c
@@ -1059,7 +1059,7 @@
dav1d_data_unref(&c->tile[n].data);
c->n_tile_data = 0;
c->n_tiles = 0;
- if (type == OBU_FRAME_HDR) break;
+ if (type == OBU_FRAME_HDR || c->frame_hdr.show_existing_frame) break;
off += res;
// fall-through
case OBU_TILE_GRP: