]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/blobdiff - libavformat/electronicarts.c
Replace all occurrances of AVERROR_IO with AVERROR(EIO).
[frescor/ffmpeg.git] / libavformat / electronicarts.c
index f8bd4d8ed86ca1d225bae21830f465fa64da1a43..871a2f75fe42f23255e07680068912a45c826739 100644 (file)
@@ -178,7 +178,7 @@ static int ea_read_header(AVFormatContext *s,
     AVStream *st;
 
     if (!process_ea_header(s))
-        return AVERROR_IO;
+        return AVERROR(EIO);
 
 #if 0
     /* initialize the video decoder stream */
@@ -226,7 +226,7 @@ static int ea_read_packet(AVFormatContext *s,
     while (!packet_read) {
 
         if (get_buffer(pb, preamble, EA_PREAMBLE_SIZE) != EA_PREAMBLE_SIZE)
-            return AVERROR_IO;
+            return AVERROR(EIO);
         chunk_type = AV_RL32(&preamble[0]);
         chunk_size = AV_RL32(&preamble[4]) - EA_PREAMBLE_SIZE;
 
@@ -235,7 +235,7 @@ static int ea_read_packet(AVFormatContext *s,
         case SCDl_TAG:
             ret = av_get_packet(pb, pkt, chunk_size);
             if (ret != chunk_size)
-                ret = AVERROR_IO;
+                ret = AVERROR(EIO);
             else {
                     pkt->stream_index = ea->audio_stream_index;
                     pkt->pts = 90000;
@@ -253,7 +253,7 @@ static int ea_read_packet(AVFormatContext *s,
 
         /* ending tag */
         case SCEl_TAG:
-            ret = AVERROR_IO;
+            ret = AVERROR(EIO);
             packet_read = 1;
             break;