shithub: dav1d

Download patch

ref: d0e29420a6b872b5e5f2426066c99bcf877c5cbc
parent: c9427fd43a17d654402f49f8ce28c4991c7024da
author: James Almer <jamrial@gmail.com>
date: Sun May 12 12:42:17 EDT 2019

obu: don't abort on unknown OBUs

The spec states that a decoder should instead ignore them. Otherwise, streams
compliant with an hypothetical future revision of the spec may be rejected when
backwards compatibility is expected.

--- a/src/obu.c
+++ b/src/obu.c
@@ -1427,8 +1427,9 @@
         // ignore OBUs we don't care about
         break;
     default:
+        // print a warning but don't fail for unknown types
         dav1d_log(c, "Unknown OBU type %d of size %u\n", type, len);
-        return DAV1D_ERR(EINVAL);
+        break;
     }
 
     if (c->seq_hdr && c->frame_hdr) {