mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 22:28:22 +01:00
cosmetics: gif2webp: fix indent
Change-Id: I9b7aaefb33b4101bcb572577ce17fb3953599c2b
This commit is contained in:
parent
af358e68ed
commit
518f2cd738
@ -132,20 +132,20 @@ static void DisplayGifError(const GifFileType* const gif, int gif_error) {
|
|||||||
#if defined(GIFLIB_MAJOR) && defined(GIFLIB_MINOR) && \
|
#if defined(GIFLIB_MAJOR) && defined(GIFLIB_MINOR) && \
|
||||||
((GIFLIB_MAJOR == 4 && GIFLIB_MINOR >= 2) || GIFLIB_MAJOR > 4)
|
((GIFLIB_MAJOR == 4 && GIFLIB_MINOR >= 2) || GIFLIB_MAJOR > 4)
|
||||||
#if GIFLIB_MAJOR >= 5
|
#if GIFLIB_MAJOR >= 5
|
||||||
// Static string actually, hence the const char* cast.
|
// Static string actually, hence the const char* cast.
|
||||||
const char* error_str = (const char*)GifErrorString(
|
const char* error_str = (const char*)GifErrorString(
|
||||||
(gif == NULL) ? gif_error : gif->Error);
|
(gif == NULL) ? gif_error : gif->Error);
|
||||||
#else
|
#else
|
||||||
const char* error_str = (const char*)GifErrorString();
|
const char* error_str = (const char*)GifErrorString();
|
||||||
(void)gif;
|
(void)gif;
|
||||||
#endif
|
#endif
|
||||||
if (error_str == NULL) error_str = "Unknown error";
|
if (error_str == NULL) error_str = "Unknown error";
|
||||||
fprintf(stderr, "GIFLib Error %d: %s\n", gif_error, error_str);
|
fprintf(stderr, "GIFLib Error %d: %s\n", gif_error, error_str);
|
||||||
#else
|
#else
|
||||||
(void)gif;
|
(void)gif;
|
||||||
fprintf(stderr, "GIFLib Error %d: ", gif_error);
|
fprintf(stderr, "GIFLib Error %d: ", gif_error);
|
||||||
PrintGifError();
|
PrintGifError();
|
||||||
fprintf(stderr, "\n");
|
fprintf(stderr, "\n");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -274,7 +274,7 @@ int main(int argc, const char *argv[]) {
|
|||||||
picture.width = gif->SWidth;
|
picture.width = gif->SWidth;
|
||||||
picture.height = gif->SHeight;
|
picture.height = gif->SHeight;
|
||||||
picture.use_argb = 1;
|
picture.use_argb = 1;
|
||||||
if (!WebPPictureAlloc(&picture)) goto End;
|
if (!WebPPictureAlloc(&picture)) goto End;
|
||||||
|
|
||||||
mux = WebPMuxNew();
|
mux = WebPMuxNew();
|
||||||
if (mux == NULL) {
|
if (mux == NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user