]> granicus.if.org Git - libvpx/commitdiff
webmdec,WebmInputContext: make timestamp_ns signed
authorJames Zern <jzern@google.com>
Wed, 17 Aug 2022 00:54:14 +0000 (17:54 -0700)
committerJames Zern <jzern@google.com>
Wed, 17 Aug 2022 01:25:14 +0000 (18:25 -0700)
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

webmdec.h

index d8618b07d67591fa90094fb26fbf93aa5d54b3c8..6ae7ee16d0bfd6424e6fa892e1b07f39e5a079f1 100644 (file)
--- a/webmdec.h
+++ b/webmdec.h
@@ -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;
 };