shithub: dav1d

Download patch

ref: 6e9ca03435275a1bcb76aa77263528a1d4289867
parent: 09de524cb0be6afb9ce838a6dd6b6afaecc7a794
author: James Almer <jamrial@gmail.com>
date: Tue Oct 23 12:08:55 EDT 2018

obu: support parsing Redundant Frame Header OBUs

--- a/src/levels.h
+++ b/src/levels.h
@@ -37,6 +37,7 @@
     OBU_TILE_GRP  = 4,
     OBU_METADATA  = 5,
     OBU_FRAME     = 6,
+    OBU_REDUNDANT_FRAME_HDR = 7,
     OBU_PADDING   = 15,
 };
 
--- a/src/obu.c
+++ b/src/obu.c
@@ -1085,6 +1085,9 @@
                           c->tile[c->n_tile_data].start;
         c->n_tile_data++;
         break;
+    case OBU_REDUNDANT_FRAME_HDR:
+        if (!c->have_frame_hdr) goto error;
+        break;
     case OBU_PADDING:
     case OBU_TD:
     case OBU_METADATA: