diff amr.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/amr.c	Thu Jul 19 15:21:30 2007 +0000
+++ b/amr.c	Thu Jul 19 15:23:32 2007 +0000
@@ -122,7 +122,7 @@
 
     if (url_feof(&s->pb))
     {
-        return AVERROR_IO;
+        return AVERROR(EIO);
     }
 
 //FIXME this is wrong, this should rather be in a AVParset
@@ -148,7 +148,7 @@
 
     if ( (size==0) || av_new_packet(pkt, size))
     {
-        return AVERROR_IO;
+        return AVERROR(EIO);
     }
 
     pkt->stream_index = 0;
@@ -160,7 +160,7 @@
     if (read != size-1)
     {
         av_free_packet(pkt);
-        return AVERROR_IO;
+        return AVERROR(EIO);
     }
 
     return 0;