diff ogg.c @ 482:0fdc96c2f2fe libavformat

sweeping change from -EIO -> AVERROR_IO
author melanson
date Sat, 19 Jun 2004 03:59:34 +0000
parents 60f897e8dd2d
children 6e685aedef2e
line wrap: on
line diff
--- a/ogg.c	Fri Jun 18 03:03:32 2004 +0000
+++ b/ogg.c	Sat Jun 19 03:59:34 2004 +0000
@@ -176,7 +176,7 @@
     buf = ogg_sync_buffer(&context->oy, DECODER_BUFFER_SIZE) ;
 
     if(get_buffer(&avfcontext->pb, buf, DECODER_BUFFER_SIZE) <= 0)
-	return -EIO ;
+	return AVERROR_IO ;
     
     ogg_sync_wrote(&context->oy, DECODER_BUFFER_SIZE) ;   
     ogg_sync_pageout(&context->oy, &og) ;
@@ -213,9 +213,9 @@
     ogg_packet op ;
 
     if(next_packet(avfcontext, &op)) 
-	return -EIO ;
+	return AVERROR_IO ;
     if(av_new_packet(pkt, op.bytes) < 0)
-	return -EIO ;
+	return AVERROR_IO ;
     pkt->stream_index = 0 ;
     memcpy(pkt->data, op.packet, op.bytes);
     if(avfcontext->streams[0]->codec.sample_rate && op.granulepos!=-1)