aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/electronicarts.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/electronicarts.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/electronicarts.c')
-rw-r--r--libavformat/electronicarts.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/electronicarts.c b/libavformat/electronicarts.c
index f8bd4d8ed8..871a2f75fe 100644
--- a/libavformat/electronicarts.c
+++ b/libavformat/electronicarts.c
@@ -178,7 +178,7 @@ static int ea_read_header(AVFormatContext *s,
AVStream *st;
if (!process_ea_header(s))
- return AVERROR_IO;
+ return AVERROR(EIO);
#if 0
/* initialize the video decoder stream */
@@ -226,7 +226,7 @@ static int ea_read_packet(AVFormatContext *s,
while (!packet_read) {
if (get_buffer(pb, preamble, EA_PREAMBLE_SIZE) != EA_PREAMBLE_SIZE)
- return AVERROR_IO;
+ return AVERROR(EIO);
chunk_type = AV_RL32(&preamble[0]);
chunk_size = AV_RL32(&preamble[4]) - EA_PREAMBLE_SIZE;
@@ -235,7 +235,7 @@ static int ea_read_packet(AVFormatContext *s,
case SCDl_TAG:
ret = av_get_packet(pb, pkt, chunk_size);
if (ret != chunk_size)
- ret = AVERROR_IO;
+ ret = AVERROR(EIO);
else {
pkt->stream_index = ea->audio_stream_index;
pkt->pts = 90000;
@@ -253,7 +253,7 @@ static int ea_read_packet(AVFormatContext *s,
/* ending tag */
case SCEl_TAG:
- ret = AVERROR_IO;
+ ret = AVERROR(EIO);
packet_read = 1;
break;