Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
dav1d
Commits
69a0cbd9
Verified
Commit
69a0cbd9
authored
Nov 29, 2018
by
James Almer
Browse files
common: make Dav1dDataProps.duration signed
parent
327b7de0
Changes
3
Hide whitespace changes
Inline
Side-by-side
include/dav1d/common.h
View file @
69a0cbd9
...
...
@@ -53,7 +53,7 @@
*/
typedef
struct
Dav1dDataProps
{
int64_t
timestamp
;
///< container timestamp of input data, default INT64_MIN
u
int64_t
duration
;
///< container duration of input data, default -1
int64_t
duration
;
///< container duration of input data, default -1
int64_t
offset
;
///< stream offset of input data, default INT64_MIN
size_t
size
;
///< packet size, default Dav1dData.sz
}
Dav1dDataProps
;
...
...
src/data.c
View file @
69a0cbd9
...
...
@@ -65,7 +65,7 @@ int dav1d_data_wrap(Dav1dData *const buf, const uint8_t *const ptr, const size_t
buf
->
data
=
ptr
;
buf
->
sz
=
buf
->
m
.
size
=
sz
;
buf
->
m
.
timestamp
=
buf
->
m
.
offset
=
INT64_MIN
;
buf
->
m
.
duration
=
~
0ULL
;
buf
->
m
.
duration
=
-
1
;
return
0
;
}
...
...
src/picture.c
View file @
69a0cbd9
...
...
@@ -118,7 +118,7 @@ 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
=
~
0ULL
;
p
->
m
.
duration
=
-
1
;
p
->
p
.
layout
=
layout
;
p
->
p
.
bpc
=
bpc
;
int
res
=
p_allocator
->
alloc_picture_callback
(
p
,
p_allocator
->
cookie
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment