mirror of
				https://github.com/webmproject/libwebp.git
				synced 2025-10-31 10:25:46 +01:00 
			
		
		
		
	quiet a few 'uninitialized' warnings
spurious in this case, but addresses e.g., ... potentially uninitialized local variable 'weighted_average' used Change-Id: Ib99998bf49e4af7a82ee66f13fb850ca5b17dc71
This commit is contained in:
		| @@ -132,7 +132,7 @@ static HRESULT ReadPictureWithWIC(const char* filename, | |||||||
|   IWICBitmapDecoder* pDecoder = NULL; |   IWICBitmapDecoder* pDecoder = NULL; | ||||||
|   IStream* pStream = NULL; |   IStream* pStream = NULL; | ||||||
|   UINT frameCount = 0; |   UINT frameCount = 0; | ||||||
|   UINT width, height = 0; |   UINT width = 0, height = 0; | ||||||
|   BYTE* rgb = NULL; |   BYTE* rgb = NULL; | ||||||
|   WICPixelFormatGUID srcPixelFormat = { 0 }; |   WICPixelFormatGUID srcPixelFormat = { 0 }; | ||||||
|   GUID srcContainerFormat = { 0 }; |   GUID srcContainerFormat = { 0 }; | ||||||
|   | |||||||
| @@ -234,7 +234,7 @@ static int EncodeAlpha(VP8Encoder* const enc, | |||||||
|  |  | ||||||
|     // Try the other mode(s). |     // Try the other mode(s). | ||||||
|     { |     { | ||||||
|       WebPAuxStats best_stats; |       WebPAuxStats best_stats = { 0 }; | ||||||
|       size_t best_score = VP8BitWriterSize(&bw); |       size_t best_score = VP8BitWriterSize(&bw); | ||||||
|       if (pic->stats != NULL) best_stats = *pic->stats; |       if (pic->stats != NULL) best_stats = *pic->stats; | ||||||
|       for (test_filter = WEBP_FILTER_HORIZONTAL; |       for (test_filter = WEBP_FILTER_HORIZONTAL; | ||||||
|   | |||||||
| @@ -147,7 +147,7 @@ static void SetSegmentAlphas(VP8Encoder* const enc, | |||||||
| static void AssignSegments(VP8Encoder* const enc, const int alphas[256]) { | static void AssignSegments(VP8Encoder* const enc, const int alphas[256]) { | ||||||
|   const int nb = enc->segment_hdr_.num_segments_; |   const int nb = enc->segment_hdr_.num_segments_; | ||||||
|   int centers[NUM_MB_SEGMENTS]; |   int centers[NUM_MB_SEGMENTS]; | ||||||
|   int weighted_average; |   int weighted_average = 0; | ||||||
|   int map[256]; |   int map[256]; | ||||||
|   int a, n, k; |   int a, n, k; | ||||||
|   int min_a = 0, max_a = 255, range_a; |   int min_a = 0, max_a = 255, range_a; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user