aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/gifdec.c
diff options
context:
space:
mode:
authorMike Melanson <mike@multimedia.cx>2004-06-19 03:59:34 +0000
committerMike Melanson <mike@multimedia.cx>2004-06-19 03:59:34 +0000
commit0bd586c50dc27ec38ca94e58f50030544d729463 (patch)
treedaa391f5efede8e58b88431b9b453dcbd1e6c2e0 /libavformat/gifdec.c
parentcbf5374fc0f733cefe304fd4d11c7b0fa21fba61 (diff)
downloadffmpeg-0bd586c50dc27ec38ca94e58f50030544d729463.tar.gz
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.c10
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);