]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/au.c
Move writing a block to its own function
[ffmpeg] / libavformat / au.c
index aaa97c76faa222acc504bd136792592b33cbdf07..bd26e54d6f50df5f40d0c55921e5dc6a87b884c9 100644 (file)
@@ -159,10 +159,10 @@ static int au_read_packet(AVFormatContext *s,
     int ret;
 
     if (url_feof(&s->pb))
-        return AVERROR_IO;
+        return AVERROR(EIO);
     ret= av_get_packet(&s->pb, pkt, MAX_SIZE);
     if (ret < 0)
-        return AVERROR_IO;
+        return AVERROR(EIO);
     pkt->stream_index = 0;
 
     /* note: we need to modify the packet size here to handle the last