diff dxa.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/dxa.c	Thu Jul 19 15:21:30 2007 +0000
+++ b/dxa.c	Thu Jul 19 15:23:32 2007 +0000
@@ -149,7 +149,7 @@
         ret = av_get_packet(&s->pb, pkt, size);
         pkt->stream_index = 1;
         if(ret != size)
-            return AVERROR_IO;
+            return AVERROR(EIO);
         c->bytes_left -= size;
         c->wavpos = url_ftell(&s->pb);
         return 0;
@@ -186,7 +186,7 @@
             ret = get_buffer(&s->pb, pkt->data + DXA_EXTRA_SIZE + pal_size, size);
             if(ret != size){
                 av_free_packet(pkt);
-                return AVERROR_IO;
+                return AVERROR(EIO);
             }
             if(pal_size) memcpy(pkt->data, pal, pal_size);
             pkt->stream_index = 0;