shithub: libvpx

Download patch

ref: 9251ff3ad722214ad9608737dd477b4c0b4206a5
parent: 483ebc30bcf96f2c5d63df9b3fa4ddda5145a198
author: James Zern <jzern@google.com>
date: Mon Mar 3 13:40:00 EST 2014

nestegg: ne_parse: normalize size_t usage

in calls to ne_read_simple / ne_io_read_skip

Change-Id: I5c4fc3bb41832973830ad54248839d6a4944aae6

--- a/third_party/nestegg/README.webm
+++ b/third_party/nestegg/README.webm
@@ -19,3 +19,4 @@
 - fix track_scale double->uint64 warning
 - nestegg_packet_track: fix uint64->uint32 warning
 - ne_read_(string|binary|block): normalize size_t usage
+- ne_parse: normalize size_t usage
--- a/third_party/nestegg/src/nestegg.c
+++ b/third_party/nestegg/src/nestegg.c
@@ -1044,7 +1044,7 @@
           ne_read_single_master(ctx, element);
         continue;
       } else {
-        r = ne_read_simple(ctx, element, size);
+        r = ne_read_simple(ctx, element, (size_t)size);
         if (r < 0)
           break;
       }
@@ -1063,7 +1063,7 @@
 
       if (id != ID_VOID && id != ID_CRC32)
         ctx->log(ctx, NESTEGG_LOG_DEBUG, "unknown element %llx", id);
-      r = ne_io_read_skip(ctx->io, size);
+      r = ne_io_read_skip(ctx->io, (size_t)size);
       if (r != 1)
         break;
     }
--