diff txd.c @ 2274:b21c2af60bc9 libavformat

Replace all occurrences of AVERROR_IO with AVERROR(EIO).
author takis
date Thu, 19 Jul 2007 15:23:32 +0000
parents 7eb456c4ed8a
children d52c718e83f9
line wrap: on
line diff
--- a/txd.c	Thu Jul 19 15:21:30 2007 +0000
+++ b/txd.c	Thu Jul 19 15:23:32 2007 +0000
@@ -61,10 +61,10 @@
     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 @@
             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) {