1
mirror of https://code.videolan.org/videolan/dav1d synced 2024-11-14 22:58:33 +01:00

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.
This commit is contained in:
Ronald S. Bultje 2018-10-24 09:13:46 -04:00 committed by Janne Grunau
parent a036432316
commit 2e991b1479

View File

@ -1059,7 +1059,7 @@ int dav1d_parse_obus(Dav1dContext *const c, Dav1dData *const in) {
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: