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/txd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libavformat/txd.c') diff --git a/libavformat/txd.c b/libavformat/txd.c index 8843226681..6c17dff55a 100644 --- a/libavformat/txd.c +++ b/libavformat/txd.c @@ -61,10 +61,10 @@ next_chunk: marker = get_le32(pb); if (url_feof(&s->pb)) - return AVERROR_IO; + return AVERROR(EIO); if (marker != TXD_MARKER && marker != TXD_MARKER2) { av_log(NULL, AV_LOG_ERROR, "marker does not match\n"); - return AVERROR_IO; + return AVERROR(EIO); } switch (id) { @@ -78,13 +78,13 @@ next_chunk: goto next_chunk; default: av_log(NULL, AV_LOG_ERROR, "unknown chunk id %i\n", id); - return AVERROR_IO; + return AVERROR(EIO); } ret = av_get_packet(&s->pb, pkt, chunk_size); pkt->stream_index = 0; - return ret <= 0 ? AVERROR_IO : ret; + return ret <= 0 ? AVERROR(EIO) : ret; } static int txd_read_close(AVFormatContext *s) { -- cgit v1.2.3