Commit 2e991b14 authored by Ronald S. Bultje's avatar Ronald S. Bultje Committed by Janne Grunau

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.
parent a0364323
...@@ -1059,7 +1059,7 @@ int dav1d_parse_obus(Dav1dContext *const c, Dav1dData *const in) { ...@@ -1059,7 +1059,7 @@ int dav1d_parse_obus(Dav1dContext *const c, Dav1dData *const in) {
dav1d_data_unref(&c->tile[n].data); dav1d_data_unref(&c->tile[n].data);
c->n_tile_data = 0; c->n_tile_data = 0;
c->n_tiles = 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; off += res;
// fall-through // fall-through
case OBU_TILE_GRP: case OBU_TILE_GRP:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment