Skip to content

Commit

Permalink
headers: make num_units_in_tick, time_scale and num_units_in_decoding…
Browse files Browse the repository at this point in the history
…_tick unsigned

All of them are 32 bits values that shall be > 0

Signed-off-by: James Almer <[email protected]>
  • Loading branch information
jamrial authored and Frank Bossen committed Apr 24, 2024
1 parent d4c6cc8 commit dbfafed
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions include/dav1d/headers.h
Original file line number Diff line number Diff line change
Expand Up @@ -245,13 +245,13 @@ typedef struct Dav1dSequenceHeader {
int still_picture;
int reduced_still_picture_header;
int timing_info_present;
int num_units_in_tick;
int time_scale;
uint32_t num_units_in_tick;
uint32_t time_scale;
int equal_picture_interval;
unsigned num_ticks_per_picture;
int decoder_model_info_present;
int encoder_decoder_buffer_delay_length;
int num_units_in_decoding_tick;
uint32_t num_units_in_decoding_tick;
int buffer_removal_delay_length;
int frame_presentation_delay_length;
int display_model_info_present;
Expand Down
2 changes: 1 addition & 1 deletion include/dav1d/picture.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ typedef struct Dav1dPicture {
*/
size_t n_itut_t35;

uintptr_t reserved[3]; ///< reserved for future use
uintptr_t reserved[4]; ///< reserved for future use

struct Dav1dRef *frame_hdr_ref; ///< Dav1dFrameHeader allocation origin
struct Dav1dRef *seq_hdr_ref; ///< Dav1dSequenceHeader allocation origin
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ project('dav1d', ['c'],
'b_ndebug=if-release'],
meson_version: '>= 0.49.0')

dav1d_soname_version = '6.9.0'
dav1d_soname_version = '7.0.0'
dav1d_api_version_array = dav1d_soname_version.split('.')
dav1d_api_version_major = dav1d_api_version_array[0]
dav1d_api_version_minor = dav1d_api_version_array[1]
Expand Down

0 comments on commit dbfafed

Please sign in to comment.