shithub: libvpx

Download patch

ref: eb27992d1570c843b358502b9c4250ab50477a58
parent: ba159a3b0a80ff97e17ad946da4b7fef4a7cfe5a
author: James Zern <jzern@google.com>
date: Fri Feb 28 14:58:33 EST 2014

nestegg: fix track_scale double->uint64 warning

Change-Id: I24c024d1b328b9c34289c125c501d2fdc246e92e

--- a/third_party/nestegg/README.webm
+++ b/third_party/nestegg/README.webm
@@ -16,3 +16,4 @@
 nestegg.c|975 col 6| warning: ‘r’ may be used uninitialized in this function [-Wuninitialized]
 - add ne_get_uint32 convenience function
 - fix track_number uint64->uint32 warnings
+- fix track_scale double->uint64 warning
--- a/third_party/nestegg/src/nestegg.c
+++ b/third_party/nestegg/src/nestegg.c
@@ -1246,7 +1246,7 @@
   struct cluster * cluster;
   struct frame * f, * last;
   struct track_entry * entry;
-  double track_scale;
+  const int track_scale = 1;
   uint64_t track_number, length, frame_sizes[256], cluster_tc, flags, frames, tc_scale, total;
   unsigned int i, lacing, track;
   size_t consumed = 0;
@@ -1339,8 +1339,6 @@
   entry = ne_find_track_entry(ctx, track);
   if (!entry)
     return -1;
-
-  track_scale = 1.0;
 
   tc_scale = ne_get_timecode_scale(ctx);
 
--