Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/obu.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2019-05-12 22:42:17 +0300
committerJames Almer <jamrial@gmail.com>2019-05-12 23:01:42 +0300
commitd0e29420a6b872b5e5f2426066c99bcf877c5cbc (patch)
tree6c7b46e23ce129e0c71d9b776e843c8cfb1a0826 /src/obu.c
parentc9427fd43a17d654402f49f8ce28c4991c7024da (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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/obu.c b/src/obu.c
index cf4e583..2767f55 100644
--- a/src/obu.c
+++ b/src/obu.c
@@ -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) {