Skip to content

Commit 5ea4939

Browse files
committed
obu: don't print warnings for Metadata OBUs of types "Unregistered user private"
1 parent 2ba57aa commit 5ea4939

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/obu.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1550,7 +1550,8 @@ ptrdiff_t dav1d_parse_obus(Dav1dContext *const c, Dav1dData *const in) {
15501550
break;
15511551
default:
15521552
// print a warning but don't fail for unknown types
1553-
dav1d_log(c, "Unknown Metadata OBU type %d\n", meta_type);
1553+
if (meta_type > 31) // Types 6 to 31 are "Unregistered user private", so ignore them.
1554+
dav1d_log(c, "Unknown Metadata OBU type %d\n", meta_type);
15541555
break;
15551556
}
15561557

0 commit comments

Comments
 (0)