diff options
author | Jean-Yves Avenard <jyavenard@mozilla.com> | 2018-11-29 20:16:37 +0300 |
---|---|---|
committer | Jean-Yves Avenard <jyavenard@mozilla.com> | 2018-11-29 22:18:03 +0300 |
commit | 9e08ac7112b6a4fef6e1dde6152ceef1117aa6f4 (patch) | |
tree | eceb1c23ddb37ea5b4d1285428e49ee7ff23624e /src/picture.c | |
parent | 8ec9793a9a0abc31f84f3e118deb58b00af1a158 (diff) |
Make Dav1dDataProps::timestamp and offset signed.
Diffstat (limited to 'src/picture.c')
-rw-r--r-- | src/picture.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/picture.c b/src/picture.c index cab14f4..4b24c09 100644 --- a/src/picture.c +++ b/src/picture.c @@ -29,6 +29,7 @@ #include <assert.h> #include <errno.h> +#include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -116,7 +117,8 @@ static int picture_alloc_with_edges(Dav1dPicture *const p, p->p.w = w; p->p.h = h; - p->m.timestamp = p->m.duration = p->m.offset = ~0ULL; + p->m.timestamp = p->m.offset = INT64_MIN; + p->m.duration = ~0ULL; p->p.layout = layout; p->p.bpc = bpc; int res = p_allocator->alloc_picture_callback(p, p_allocator->cookie); |