diff ogg.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
line wrap: on
line diff
--- a/ogg.c	Thu Jul 19 15:21:30 2007 +0000
+++ b/ogg.c	Thu Jul 19 15:23:32 2007 +0000
@@ -205,7 +205,7 @@
     buf = ogg_sync_buffer(&context->oy, DECODER_BUFFER_SIZE) ;
 
     if(get_buffer(&avfcontext->pb, buf, DECODER_BUFFER_SIZE) <= 0)
-        return AVERROR_IO ;
+        return AVERROR(EIO) ;
 
     ogg_sync_wrote(&context->oy, DECODER_BUFFER_SIZE) ;
     ogg_sync_pageout(&context->oy, &og) ;
@@ -245,9 +245,9 @@
     ogg_packet op ;
 
     if(next_packet(avfcontext, &op))
-        return AVERROR_IO ;
+        return AVERROR(EIO) ;
     if(av_new_packet(pkt, op.bytes) < 0)
-        return AVERROR_IO ;
+        return AVERROR(EIO) ;
     pkt->stream_index = 0 ;
     memcpy(pkt->data, op.packet, op.bytes);
     if(avfcontext->streams[0]->codec.sample_rate && op.granulepos!=-1)