Commit 5f8b6d0c authored by James Almer's avatar James Almer

obu: abort parsing OBU_FRAME if show_existing_frame=1

This is more in line with the behavior from libaom.
Signed-off-by: James Almer's avatarJames Almer <jamrial@gmail.com>
parent 4cfd948d
......@@ -1059,7 +1059,8 @@ 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 || c->frame_hdr.show_existing_frame) break;
if (type == OBU_FRAME_HDR) break;
if (c->frame_hdr.show_existing_frame) goto error;
off += res;
// fall-through
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