muxedit: silence some uninitialized warnings

src/mux/muxedit.c:490: warning: 'x_offset' may be used uninitialized in this function
src/mux/muxedit.c:490: warning: 'y_offset' may be used uninitialized in this function

Change-Id: I4fd27f717e59a556354d0560b633d0edafe7a4d8
(cherry picked from commit 14cd5c6c40)
This commit is contained in:
James Zern 2013-06-14 19:01:58 -07:00
parent 825e73b1a6
commit ad9e42a6fe

View File

@ -477,7 +477,7 @@ static WebPMuxError GetImageCanvasWidthHeight(
int64_t image_area = 0; int64_t image_area = 0;
// Aggregate the bounding box for animation frames & fragmented images. // Aggregate the bounding box for animation frames & fragmented images.
for (; wpi != NULL; wpi = wpi->next_) { for (; wpi != NULL; wpi = wpi->next_) {
int x_offset, y_offset, duration, w, h; int x_offset = 0, y_offset = 0, duration = 0, w = 0, h = 0;
const WebPMuxError err = GetImageInfo(wpi, &x_offset, &y_offset, const WebPMuxError err = GetImageInfo(wpi, &x_offset, &y_offset,
&duration, &w, &h); &duration, &w, &h);
const int max_x_pos = x_offset + w; const int max_x_pos = x_offset + w;