simplify, patch by Mark Cox, melbournemark plus ffmpeg minus devel gmail com

Originally committed as revision 8775 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Mark Cox 18 years ago committed by Baptiste Coudurier
parent 1c02d96f6d
commit 94cebc5641
  1. 9
      libavcodec/gifdec.c

@ -258,16 +258,13 @@ static int gif_parse_next_image(GifState *s)
#endif #endif
switch (code) { switch (code) {
case ',': case ',':
if (gif_read_image(s) < 0) return gif_read_image(s);
return -1;
return 0;
case ';':
/* end of image */
return -1;
case '!': case '!':
if (gif_read_extension(s) < 0) if (gif_read_extension(s) < 0)
return -1; return -1;
break; break;
case ';':
/* end of image */
default: default:
/* error or erroneous EOF */ /* error or erroneous EOF */
return -1; return -1;

Loading…
Cancel
Save