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/wav.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/wav.c')
-rw-r--r-- | libavformat/wav.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/wav.c b/libavformat/wav.c index f16b52e96d..cb748a9dcb 100644 --- a/libavformat/wav.c +++ b/libavformat/wav.c @@ -200,14 +200,14 @@ static int wav_read_packet(AVFormatContext *s, WAVContext *wav = s->priv_data; if (url_feof(&s->pb)) - return AVERROR_IO; + return AVERROR(EIO); st = s->streams[0]; left= wav->data_end - url_ftell(&s->pb); if(left <= 0){ left = find_tag(&(s->pb), MKTAG('d', 'a', 't', 'a')); if (left < 0) { - return AVERROR_IO; + return AVERROR(EIO); } wav->data_end= url_ftell(&s->pb) + left; } @@ -221,7 +221,7 @@ static int wav_read_packet(AVFormatContext *s, size= FFMIN(size, left); ret= av_get_packet(&s->pb, pkt, size); if (ret <= 0) - return AVERROR_IO; + return AVERROR(EIO); pkt->stream_index = 0; /* note: we need to modify the packet size here to handle the last |