diff options
author | James Almer <jamrial@gmail.com> | 2018-11-30 18:18:22 +0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2018-11-30 18:18:22 +0300 |
commit | 36b807afe75040d9953bf63f68b67e6cd2fe4fc0 (patch) | |
tree | bff871f8e6ed92a2495d8fbe502fcc578845c6c1 /src/data.c | |
parent | 5e0087d9eb3a6ac1a16338241bb1a047e8fd55ab (diff) |
data: fix setting Dav1dDataProps defaults in dav1d_data_create()
Missed in the previous commits.
Diffstat (limited to 'src/data.c')
-rw-r--r-- | src/data.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -46,8 +46,9 @@ uint8_t * dav1d_data_create(Dav1dData *const buf, const size_t sz) { 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; } |