data: fix setting Dav1dDataProps defaults in dav1d_data_create()

Missed in the previous commits.
parent 5e0087d9
...@@ -46,8 +46,9 @@ uint8_t * dav1d_data_create(Dav1dData *const buf, const size_t sz) { ...@@ -46,8 +46,9 @@ uint8_t * dav1d_data_create(Dav1dData *const buf, const size_t sz) {
if (!buf->ref) return NULL; if (!buf->ref) return NULL;
buf->data = buf->ref->const_data; buf->data = buf->ref->const_data;
buf->sz = buf->m.size = sz; buf->sz = buf->m.size = sz;
buf->m.timestamp = buf->m.offset = INT64_MIN; buf->m.timestamp = INT64_MIN;
buf->m.duration = ~0ULL; buf->m.duration = 0;
buf->m.offset = -1;
return buf->ref->data; return buf->ref->data;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment