aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/flic.c
diff options
context:
space:
mode:
authorPanagiotis Issaris <takis.issaris@uhasselt.be>2007-07-19 15:23:32 +0000
committerPanagiotis Issaris <takis.issaris@uhasselt.be>2007-07-19 15:23:32 +0000
commit6f3e0b21748b53fd7b0471196bbda1d7e561f4fe (patch)
tree5130d5b49907a72bf1f16c7861ec3b891a3708e4 /libavformat/flic.c
parent769e10f0684c63aefb6fe36788f3e543312e185d (diff)
downloadffmpeg-6f3e0b21748b53fd7b0471196bbda1d7e561f4fe.tar.gz
Replace all occurrences of AVERROR_IO with AVERROR(EIO).
Originally committed as revision 9760 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/flic.c')
-rw-r--r--libavformat/flic.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/flic.c b/libavformat/flic.c
index 69259fe72d..7ad25c2bff 100644
--- a/libavformat/flic.c
+++ b/libavformat/flic.c
@@ -78,7 +78,7 @@ static int flic_read_header(AVFormatContext *s,
/* load the whole header and pull out the width and height */
if (get_buffer(pb, header, FLIC_HEADER_SIZE) != FLIC_HEADER_SIZE)
- return AVERROR_IO;
+ return AVERROR(EIO);
magic_number = AV_RL16(&header[4]);
speed = AV_RL32(&header[0x10]);
@@ -169,7 +169,7 @@ static int flic_read_packet(AVFormatContext *s,
if ((ret = get_buffer(pb, preamble, FLIC_PREAMBLE_SIZE)) !=
FLIC_PREAMBLE_SIZE) {
- ret = AVERROR_IO;
+ ret = AVERROR(EIO);
break;
}
@@ -178,7 +178,7 @@ static int flic_read_packet(AVFormatContext *s,
if (((magic == FLIC_CHUNK_MAGIC_1) || (magic == FLIC_CHUNK_MAGIC_2)) && size > FLIC_PREAMBLE_SIZE) {
if (av_new_packet(pkt, size)) {
- ret = AVERROR_IO;
+ ret = AVERROR(EIO);
break;
}
pkt->stream_index = flic->video_stream_index;
@@ -189,7 +189,7 @@ static int flic_read_packet(AVFormatContext *s,
size - FLIC_PREAMBLE_SIZE);
if (ret != size - FLIC_PREAMBLE_SIZE) {
av_free_packet(pkt);
- ret = AVERROR_IO;
+ ret = AVERROR(EIO);
}
flic->pts += flic->frame_pts_inc;
packet_read = 1;