Replace all the occurrences of AVERROR_EIO with AVERROR(EIO), and mark
[ffmpeg.git] / libavformat / soxdec.c
index ceaedec2938c9ca14629cfe3b146f342f61e81b1..0151efebc10168d6c8d63ca4ca0dd7882bc255f2 100644 (file)
@@ -97,7 +97,7 @@ static int sox_read_header(AVFormatContext *s,
         char *comment = av_malloc(comment_size+1);
         if (get_buffer(pb, comment, comment_size) != comment_size) {
             av_freep(&comment);
-            return AVERROR_IO;
+            return AVERROR(EIO);
         }
         comment[comment_size] = 0;