Lines 316-324
Link Here
|
316 |
int |
316 |
int |
317 |
SplashDecodeGifStream(Splash * splash, SplashStream * stream) |
317 |
SplashDecodeGifStream(Splash * splash, SplashStream * stream) |
318 |
{ |
318 |
{ |
|
|
319 |
#ifdef GIFLIB_MAJOR >= 5 |
320 |
int error = 0; |
321 |
GifFileType *gif = DGifOpen((void *) stream, SplashStreamGifInputFunc, &error); |
322 |
|
323 |
if (error) |
324 |
return 0; |
325 |
#else |
319 |
GifFileType *gif = DGifOpen((void *) stream, SplashStreamGifInputFunc); |
326 |
GifFileType *gif = DGifOpen((void *) stream, SplashStreamGifInputFunc); |
320 |
|
327 |
|
321 |
if (!gif) |
328 |
if (!gif) |
322 |
return 0; |
329 |
return 0; |
|
|
330 |
#endif |
331 |
|
323 |
return SplashDecodeGif(splash, gif); |
332 |
return SplashDecodeGif(splash, gif); |
324 |
} |
333 |
} |