diff options
author | Mike Melanson <mike@multimedia.cx> | 2004-06-19 07:59:34 +0400 |
---|---|---|
committer | Mike Melanson <mike@multimedia.cx> | 2004-06-19 07:59:34 +0400 |
commit | 0bd586c50dc27ec38ca94e58f50030544d729463 (patch) | |
tree | daa391f5efede8e58b88431b9b453dcbd1e6c2e0 /libavformat/gifdec.c | |
parent | cbf5374fc0f733cefe304fd4d11c7b0fa21fba61 (diff) |
sweeping change from -EIO -> AVERROR_IO
Originally committed as revision 3239 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/gifdec.c')
-rw-r--r-- | libavformat/gifdec.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libavformat/gifdec.c b/libavformat/gifdec.c index 8c31869efc..133ce1718e 100644 --- a/libavformat/gifdec.c +++ b/libavformat/gifdec.c @@ -505,21 +505,21 @@ static int gif_parse_next_image(GifState *s) switch (code) { case ',': if (gif_read_image(s) < 0) - return -EIO; + return AVERROR_IO; ret = 0; goto the_end; case ';': /* end of image */ - ret = -EIO; + ret = AVERROR_IO; goto the_end; case '!': if (gif_read_extension(s) < 0) - return -EIO; + return AVERROR_IO; break; case EOF: default: /* error or errneous EOF */ - ret = -EIO; + ret = AVERROR_IO; goto the_end; } } @@ -572,7 +572,7 @@ static int gif_read_packet(AVFormatContext * s1, /* XXX: avoid copying */ if (av_new_packet(pkt, s->screen_width * s->screen_height * 3)) { - return -EIO; + return AVERROR_IO; } pkt->stream_index = 0; memcpy(pkt->data, s->image_buf, s->screen_width * s->screen_height * 3); |