From 6f3e0b21748b53fd7b0471196bbda1d7e561f4fe Mon Sep 17 00:00:00 2001 From: Panagiotis Issaris Date: Thu, 19 Jul 2007 15:23:32 +0000 Subject: Replace all occurrences of AVERROR_IO with AVERROR(EIO). Originally committed as revision 9760 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/bethsoftvid.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libavformat/bethsoftvid.c') diff --git a/libavformat/bethsoftvid.c b/libavformat/bethsoftvid.c index 4406659d8b..89af4f16fe 100644 --- a/libavformat/bethsoftvid.c +++ b/libavformat/bethsoftvid.c @@ -179,7 +179,7 @@ static int vid_read_packet(AVFormatContext *s, int ret_value; if(vid->is_finished || url_feof(pb)) - return AVERROR_IO; + return AVERROR(EIO); block_type = get_byte(pb); switch(block_type){ @@ -188,7 +188,7 @@ static int vid_read_packet(AVFormatContext *s, ret_value = av_get_packet(pb, pkt, 3 * 256 + 1); if(ret_value != 3 * 256 + 1){ av_free_packet(pkt); - return AVERROR_IO; + return AVERROR(EIO); } pkt->stream_index = 0; return ret_value; @@ -202,7 +202,7 @@ static int vid_read_packet(AVFormatContext *s, audio_length = get_le16(pb); ret_value = av_get_packet(pb, pkt, audio_length); pkt->stream_index = 1; - return (ret_value != audio_length ? AVERROR_IO : ret_value); + return (ret_value != audio_length ? AVERROR(EIO) : ret_value); case VIDEO_P_FRAME: case VIDEO_YOFF_P_FRAME: @@ -214,7 +214,7 @@ static int vid_read_packet(AVFormatContext *s, if(vid->nframes != 0) av_log(s, AV_LOG_VERBOSE, "reached terminating character but not all frames read.\n"); vid->is_finished = 1; - return AVERROR_IO; + return AVERROR(EIO); default: av_log(s, AV_LOG_ERROR, "unknown block (character = %c, decimal = %d, hex = %x)!!!\n", block_type, block_type, block_type); return -1; -- cgit v1.2.3