From 673ee2486521446b2500124d4826a84403d2aaca Mon Sep 17 00:00:00 2001 From: David Conrad Date: Tue, 7 Jun 2022 15:06:24 -0700 Subject: Ignore T.35 metadata if the OBU contains no payload The syntax of itu_t_t35_payload_bytes is not defined in the AV1 specification, but it does state that decoders should ignore the entire OBU if they do not understand it. --- src/obu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/obu.c b/src/obu.c index 6d06a10..2b04da3 100644 --- a/src/obu.c +++ b/src/obu.c @@ -1509,7 +1509,7 @@ int dav1d_parse_obus(Dav1dContext *const c, Dav1dData *const in, const int globa if (payload_size <= 0) { dav1d_log(c, "Malformed ITU-T T.35 metadata message format\n"); - goto error; + break; } Dav1dRef *ref = dav1d_ref_create(sizeof(Dav1dITUTT35) + payload_size * sizeof(uint8_t)); -- cgit v1.2.3