From e8a0a821d205508b3fabc18fbef91c4b6cbb97bc Mon Sep 17 00:00:00 2001 From: James Zern Date: Thu, 21 Jun 2012 18:48:38 -0700 Subject: [PATCH] demux: quiet msvc warnings min_size is safe to be a uint32_t so avoid the size_t -> uint32_t conversion Change-Id: Ib53fe58d313b55dfcf3bee35d0cad48f210d07bf --- src/mux/demux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mux/demux.c b/src/mux/demux.c index 2b4caf2f..6c283e2f 100644 --- a/src/mux/demux.c +++ b/src/mux/demux.c @@ -271,7 +271,7 @@ static ParseStatus NewFrame(const MemBuffer* const mem, static ParseStatus ParseFrame( WebPDemuxer* const dmux, uint32_t frame_chunk_size) { const int has_frames = !!(dmux->feature_flags_ & ANIMATION_FLAG); - const size_t min_size = frame_chunk_size + CHUNK_HEADER_SIZE; + const uint32_t min_size = frame_chunk_size + CHUNK_HEADER_SIZE; int added_frame = 0; MemBuffer* const mem = &dmux->mem_; Frame* frame; @@ -307,7 +307,7 @@ static ParseStatus ParseFrame( static ParseStatus ParseTile(WebPDemuxer* const dmux, uint32_t tile_chunk_size) { const int has_tiles = !!(dmux->feature_flags_ & TILE_FLAG); - const size_t min_size = tile_chunk_size + CHUNK_HEADER_SIZE; + const uint32_t min_size = tile_chunk_size + CHUNK_HEADER_SIZE; int added_tile = 0; MemBuffer* const mem = &dmux->mem_; Frame* frame;