remove unneeded error condition for WebPMuxNumNamedElements()

+ fix error message

Change-Id: If283ff6609ee0c5dff81a9c1c3f194faa729161c
This commit is contained in:
Pascal Massimino 2012-05-09 01:57:15 -07:00
parent 861a5b7bc9
commit 3927ff3abc

View File

@ -209,7 +209,7 @@ static int Decode(const int frame_number, uint32_t* const duration) {
} }
if (x_off != 0 || y_off != 0) { if (x_off != 0 || y_off != 0) {
fprintf(stderr, fprintf(stderr,
"Tiling and offsets not yet supported! Forcing offset to 0,0\n"); "Frame offsets not yet supported! Forcing offset to 0,0\n");
x_off = y_off = 0; x_off = y_off = 0;
} }
data = &image_data; data = &image_data;
@ -339,7 +339,7 @@ int main(int argc, char *argv[]) {
} }
mux_err = WebPMuxNumNamedElements(kParams.mux, "image", mux_err = WebPMuxNumNamedElements(kParams.mux, "image",
&kParams.frame_max); &kParams.frame_max);
if (mux_err != WEBP_MUX_OK && mux_err != WEBP_MUX_NOT_FOUND) { if (mux_err != WEBP_MUX_OK) {
goto Error; goto Error;
} }
printf("VP8X: Found %d images in file (loop count = %d)\n", printf("VP8X: Found %d images in file (loop count = %d)\n",