diff options
author | James Almer <jamrial@gmail.com> | 2019-05-12 22:42:17 +0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2019-05-12 23:01:42 +0300 |
commit | d0e29420a6b872b5e5f2426066c99bcf877c5cbc (patch) | |
tree | 6c7b46e23ce129e0c71d9b776e843c8cfb1a0826 /src/obu.c | |
parent | c9427fd43a17d654402f49f8ce28c4991c7024da (diff) |
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.
Diffstat (limited to 'src/obu.c')
-rw-r--r-- | src/obu.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1427,8 +1427,9 @@ int dav1d_parse_obus(Dav1dContext *const c, Dav1dData *const in, int global) { // 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) { |