ref: 5f8b6d0cb95fd466cde010b45354b6dda519f221
parent: 4cfd948d660211cf6b46969dee0d9c1423c0e943
author: James Almer <jamrial@gmail.com>
date: Wed Oct 24 10:01:20 EDT 2018
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 <jamrial@gmail.com>
--- a/src/obu.c
+++ b/src/obu.c
@@ -1059,7 +1059,8 @@
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: