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

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
Pipeline #1276 passed with stage
in 2 minutes and 30 seconds
......@@ -1059,7 +1059,7 @@ int dav1d_parse_obus(Dav1dContext *const c, Dav1dData *const in) {
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
Supports Markdown
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