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/avs.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/avs.c')
-rw-r--r-- | libavformat/avs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/avs.c b/libavformat/avs.c index 74cf5038f3..b6ede08ed3 100644 --- a/libavformat/avs.c +++ b/libavformat/avs.c @@ -106,7 +106,7 @@ avs_read_video_packet(AVFormatContext * s, AVPacket * pkt, ret = get_buffer(&s->pb, pkt->data + palette_size + 4, size - 4) + 4; if (ret < size) { av_free_packet(pkt); - return AVERROR_IO; + return AVERROR(EIO); } pkt->size = ret + palette_size; @@ -127,7 +127,7 @@ static int avs_read_audio_packet(AVFormatContext * s, AVPacket * pkt) size = url_ftell(&s->pb) - size; avs->remaining_audio_size -= size; - if (ret == AVERROR_IO) + if (ret == AVERROR(EIO)) return 0; /* this indicate EOS */ if (ret < 0) return ret; @@ -154,7 +154,7 @@ static int avs_read_packet(AVFormatContext * s, AVPacket * pkt) while (1) { if (avs->remaining_frame_size <= 0) { if (!get_le16(&s->pb)) /* found EOF */ - return AVERROR_IO; + return AVERROR(EIO); avs->remaining_frame_size = get_le16(&s->pb) - 4; } @@ -168,7 +168,7 @@ static int avs_read_packet(AVFormatContext * s, AVPacket * pkt) case AVS_PALETTE: ret = get_buffer(&s->pb, palette, size - 4); if (ret < size - 4) - return AVERROR_IO; + return AVERROR(EIO); palette_size = size; break; |