diff options
author | James Almer <jamrial@gmail.com> | 2018-11-30 04:53:14 +0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2018-11-30 04:53:14 +0300 |
commit | 5e0087d9eb3a6ac1a16338241bb1a047e8fd55ab (patch) | |
tree | b632df17d849f430239e1901aed6e66066c75f8d /src/picture.c | |
parent | 6d87752bbaa75c80a98db558386e46c59c7bbf6f (diff) |
common: make 0 the default for Dav1dDataProps.duration
Diffstat (limited to 'src/picture.c')
-rw-r--r-- | src/picture.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/picture.c b/src/picture.c index 55baa50..745cd17 100644 --- a/src/picture.c +++ b/src/picture.c @@ -118,7 +118,8 @@ static int picture_alloc_with_edges(Dav1dPicture *const p, p->p.w = w; p->p.h = h; p->m.timestamp = INT64_MIN; - p->m.duration = p->m.offset = -1; + p->m.duration = 0; + p->m.offset = -1; p->p.layout = layout; p->p.bpc = bpc; int res = p_allocator->alloc_picture_callback(p, p_allocator->cookie); |