Skip to content

Commit

Permalink
webmdec,WebmInputContext: make timestamp_ns signed
Browse files Browse the repository at this point in the history
this matches the type returned from libwebm, which uses -1 as an error;
quiets integer sanitizer warnings of the form:
implicit conversion from type 'long long' of value -1 (64-bit, signed)
to type 'uint64_t' (aka 'unsigned long') changed the value to
18446744073709551615 (64-bit, unsigned)

Bug: b/229626362
Change-Id: Id3966912f802aee3c0f7852225b55f3057c3e76a
  • Loading branch information
jzern committed Aug 17, 2022
1 parent b77b6b6 commit cb18d72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webmdec.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ struct WebmInputContext {
const void *block;
int block_frame_index;
int video_track_index;
uint64_t timestamp_ns;
int64_t timestamp_ns;
int is_key_frame;
int reached_eos;
};
Expand Down

0 comments on commit cb18d72

Please sign in to comment.