diff options
author | James Almer <jamrial@gmail.com> | 2018-12-03 03:33:09 +0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2018-12-03 03:41:02 +0300 |
commit | 8cf300206d60d904afb1f7d1e60c86152da3337c (patch) | |
tree | e0463a285ed49a44216023174c0a4256d131633c /include/dav1d/headers.h | |
parent | 36b807afe75040d9953bf63f68b67e6cd2fe4fc0 (diff) |
obu: fix setting num_ticks_per_picture in sequence headers
This fixes a potential overflow when setting num_ticks_per_picture if
dav1d_get_vlc() returns (1 << 32) - 1.
Diffstat (limited to 'include/dav1d/headers.h')
-rw-r--r-- | include/dav1d/headers.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/dav1d/headers.h b/include/dav1d/headers.h index bf5eb63..f50a82e 100644 --- a/include/dav1d/headers.h +++ b/include/dav1d/headers.h @@ -203,7 +203,7 @@ typedef struct Dav1dSequenceHeader { int num_units_in_tick; int time_scale; int equal_picture_interval; - int num_ticks_per_picture; + unsigned num_ticks_per_picture; int decoder_model_info_present; int encoder_decoder_buffer_delay_length; int num_units_in_decoding_tick; |