muxedit: a few more size_t changes

Change-Id: I18266dc572426cb3daace6e0ad8f2ae21687a151
This commit is contained in:
James Zern 2012-04-27 18:53:08 -07:00
parent 03f1f49321
commit a6cdf7107a

View File

@ -96,7 +96,7 @@ static WebPMuxError MuxSet(WebPMux* const mux, TAG_ID id, uint32_t nth,
#undef SWITCH_ID_LIST
static WebPMuxError MuxAddChunk(WebPMux* const mux, uint32_t nth, uint32_t tag,
const uint8_t* data, uint32_t size,
const uint8_t* data, size_t size,
WebPImageInfo* image_info, int copy_data) {
const TAG_ID id = ChunkGetIdFromTag(tag);
assert(mux != NULL);
@ -140,7 +140,7 @@ static WebPImageInfo* CreateImageInfo(uint32_t x_offset, uint32_t y_offset,
// Create data for frame/tile given image_info.
static WebPMuxError CreateDataFromImageInfo(const WebPImageInfo* image_info,
int is_frame,
uint8_t** data, uint32_t* size) {
uint8_t** data, size_t* size) {
assert(data);
assert(size);
assert(image_info);
@ -331,7 +331,7 @@ static WebPMuxError MuxAddFrameTileInternal(
WebPMuxError err;
WebPImageInfo* image_info = NULL;
uint8_t* frame_tile_data = NULL;
uint32_t frame_tile_data_size = 0;
size_t frame_tile_data_size = 0;
const int is_frame = (tag == kChunks[FRAME_ID].chunkTag) ? 1 : 0;
const int has_alpha = (alpha_data != NULL && alpha_size != 0);
@ -539,7 +539,7 @@ static WebPMuxError CreateVP8XChunk(WebPMux* const mux) {
uint32_t width = 0;
uint32_t height = 0;
uint8_t data[VP8X_CHUNK_SIZE];
const uint32_t data_size = VP8X_CHUNK_SIZE;
const size_t data_size = VP8X_CHUNK_SIZE;
const WebPMuxImage* images = NULL;
assert(mux != NULL);