shithub: dav1d

Download patch

ref: 36b807afe75040d9953bf63f68b67e6cd2fe4fc0
parent: 5e0087d9eb3a6ac1a16338241bb1a047e8fd55ab
author: James Almer <[email protected]>
date: Fri Nov 30 07:18:22 EST 2018

data: fix setting Dav1dDataProps defaults in dav1d_data_create()

Missed in the previous commits.

--- a/src/data.c
+++ b/src/data.c
@@ -46,8 +46,9 @@
     if (!buf->ref) return NULL;
     buf->data = buf->ref->const_data;
     buf->sz = buf->m.size = sz;
-    buf->m.timestamp = buf->m.offset = INT64_MIN;
-    buf->m.duration = ~0ULL;
+    buf->m.timestamp = INT64_MIN;
+    buf->m.duration = 0;
+    buf->m.offset = -1;
 
     return buf->ref->data;
 }