]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/ogg2.c
Replace all occurrences of AVERROR_IO with AVERROR(EIO).
[ffmpeg] / libavformat / ogg2.c
index ca8c2c31d7cdd75b3c2cc58cff98cd7b38086294..3602f216756958ff16fbfb8da608344721114a7a 100644 (file)
@@ -540,7 +540,7 @@ ogg_read_packet (AVFormatContext * s, AVPacket * pkt)
     //Get an ogg packet
     do{
         if (ogg_packet (s, &idx, &pstart, &psize) < 0)
-            return AVERROR_IO;
+            return AVERROR(EIO);
     }while (idx < 0 || !s->streams[idx]);
 
     ogg = s->priv_data;
@@ -548,7 +548,7 @@ ogg_read_packet (AVFormatContext * s, AVPacket * pkt)
 
     //Alloc a pkt
     if (av_new_packet (pkt, psize) < 0)
-        return AVERROR_IO;
+        return AVERROR(EIO);
     pkt->stream_index = idx;
     memcpy (pkt->data, os->buf + pstart, psize);
     if (os->lastgp != -1LL){