diff flic.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 8a7b2fac0a98
line wrap: on
line diff
--- a/flic.c	Thu Jul 19 15:21:30 2007 +0000
+++ b/flic.c	Thu Jul 19 15:23:32 2007 +0000
@@ -78,7 +78,7 @@
 
     /* load the whole header and pull out the width and height */
     if (get_buffer(pb, header, FLIC_HEADER_SIZE) != FLIC_HEADER_SIZE)
-        return AVERROR_IO;
+        return AVERROR(EIO);
 
     magic_number = AV_RL16(&header[4]);
     speed = AV_RL32(&header[0x10]);
@@ -169,7 +169,7 @@
 
         if ((ret = get_buffer(pb, preamble, FLIC_PREAMBLE_SIZE)) !=
             FLIC_PREAMBLE_SIZE) {
-            ret = AVERROR_IO;
+            ret = AVERROR(EIO);
             break;
         }
 
@@ -178,7 +178,7 @@
 
         if (((magic == FLIC_CHUNK_MAGIC_1) || (magic == FLIC_CHUNK_MAGIC_2)) && size > FLIC_PREAMBLE_SIZE) {
             if (av_new_packet(pkt, size)) {
-                ret = AVERROR_IO;
+                ret = AVERROR(EIO);
                 break;
             }
             pkt->stream_index = flic->video_stream_index;
@@ -189,7 +189,7 @@
                 size - FLIC_PREAMBLE_SIZE);
             if (ret != size - FLIC_PREAMBLE_SIZE) {
                 av_free_packet(pkt);
-                ret = AVERROR_IO;
+                ret = AVERROR(EIO);
             }
             flic->pts += flic->frame_pts_inc;
             packet_read = 1;