From f79c163bbf94a37f9ba878894f94c9d5e589d12e Mon Sep 17 00:00:00 2001 From: James Zern Date: Fri, 9 Jan 2015 17:06:56 -0800 Subject: [PATCH] anim_encode: fix type conversion warnings fixes: C4267: '=' : conversion from 'size_t' to 'int', possible loss of data Change-Id: Ie8e0bbd6f19fde21b2dbbd2a92cc99e76502dfed --- src/mux/anim_encode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mux/anim_encode.c b/src/mux/anim_encode.c index 395fa4a3..e7b92ac7 100644 --- a/src/mux/anim_encode.c +++ b/src/mux/anim_encode.c @@ -59,7 +59,7 @@ struct WebPAnimEncoder { size_t size_; // Number of allocated frames. size_t start_; // Frame start index. size_t count_; // Number of valid frames. - int flush_count_; // If >0, 'flush_count' frames starting from + size_t flush_count_; // If >0, 'flush_count' frames starting from // 'start' are ready to be added to mux. // key-frame related. @@ -962,7 +962,7 @@ static int CacheFrame(WebPAnimEncoder* const enc, int duration, old_keyframe->is_key_frame_ = 0; } encoded_frame->is_key_frame_ = 1; - enc->keyframe_ = position; + enc->keyframe_ = (int)position; enc->best_delta_ = curr_delta; enc->flush_count_ = enc->count_ - 1; // We can flush previous frames. } else {