diff options
author | Panagiotis Issaris <takis.issaris@uhasselt.be> | 2007-07-19 15:23:32 +0000 |
---|---|---|
committer | Panagiotis Issaris <takis.issaris@uhasselt.be> | 2007-07-19 15:23:32 +0000 |
commit | 6f3e0b21748b53fd7b0471196bbda1d7e561f4fe (patch) | |
tree | 5130d5b49907a72bf1f16c7861ec3b891a3708e4 /libavformat/4xm.c | |
parent | 769e10f0684c63aefb6fe36788f3e543312e185d (diff) | |
download | ffmpeg-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/4xm.c')
-rw-r--r-- | libavformat/4xm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/4xm.c b/libavformat/4xm.c index d377167264..87dad7dbb0 100644 --- a/libavformat/4xm.c +++ b/libavformat/4xm.c @@ -118,7 +118,7 @@ static int fourxm_read_header(AVFormatContext *s, if (!header) return AVERROR(ENOMEM); if (get_buffer(pb, header, header_size) != header_size) - return AVERROR_IO; + return AVERROR(EIO); /* take the lazy approach and search for any and all vtrk and strk chunks */ for (i = 0; i < header_size - 8; i++) { @@ -235,7 +235,7 @@ static int fourxm_read_packet(AVFormatContext *s, fourcc_tag = AV_RL32(&header[0]); size = AV_RL32(&header[4]); if (url_feof(pb)) - return AVERROR_IO; + return AVERROR(EIO); switch (fourcc_tag) { case LIST_TAG: @@ -253,7 +253,7 @@ static int fourxm_read_packet(AVFormatContext *s, /* allocate 8 more bytes than 'size' to account for fourcc * and size */ if (size + 8 < size || av_new_packet(pkt, size + 8)) - return AVERROR_IO; + return AVERROR(EIO); pkt->stream_index = fourxm->video_stream_index; pkt->pts = fourxm->video_pts; pkt->pos = url_ftell(&s->pb); @@ -275,7 +275,7 @@ static int fourxm_read_packet(AVFormatContext *s, if (track_number == fourxm->selected_track) { ret= av_get_packet(&s->pb, pkt, size); if(ret<0) - return AVERROR_IO; + return AVERROR(EIO); pkt->stream_index = fourxm->tracks[fourxm->selected_track].stream_index; pkt->pts = fourxm->audio_pts; |