Commit e4ee4532 authored by James Almer's avatar James Almer

common: make -1 the default for Dav1dDataProps.offset

parent 69a0cbd9
......@@ -54,7 +54,7 @@
typedef struct Dav1dDataProps {
int64_t timestamp; ///< container timestamp of input data, default INT64_MIN
int64_t duration; ///< container duration of input data, default -1
int64_t offset; ///< stream offset of input data, default INT64_MIN
int64_t offset; ///< stream offset of input data, default -1
size_t size; ///< packet size, default Dav1dData.sz
} Dav1dDataProps;
......
......@@ -64,8 +64,8 @@ int dav1d_data_wrap(Dav1dData *const buf, const uint8_t *const ptr, const size_t
if (!buf->ref) return -ENOMEM;
buf->data = ptr;
buf->sz = buf->m.size = sz;
buf->m.timestamp = buf->m.offset = INT64_MIN;
buf->m.duration = -1;
buf->m.timestamp = INT64_MIN;
buf->m.duration = buf->m.offset = -1;
return 0;
}
......
......@@ -117,8 +117,8 @@ static int picture_alloc_with_edges(Dav1dPicture *const p,
p->p.w = w;
p->p.h = h;
p->m.timestamp = p->m.offset = INT64_MIN;
p->m.duration = -1;
p->m.timestamp = INT64_MIN;
p->m.duration = p->m.offset = -1;
p->p.layout = layout;
p->p.bpc = bpc;
int res = p_allocator->alloc_picture_callback(p, p_allocator->cookie);
......
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