diff options
author | Mike Melanson <mike@multimedia.cx> | 2004-06-19 03:59:34 +0000 |
---|---|---|
committer | Mike Melanson <mike@multimedia.cx> | 2004-06-19 03:59:34 +0000 |
commit | 0bd586c50dc27ec38ca94e58f50030544d729463 (patch) | |
tree | daa391f5efede8e58b88431b9b453dcbd1e6c2e0 /libavformat/yuv.c | |
parent | cbf5374fc0f733cefe304fd4d11c7b0fa21fba61 (diff) | |
download | ffmpeg-streaming-0bd586c50dc27ec38ca94e58f50030544d729463.zip ffmpeg-streaming-0bd586c50dc27ec38ca94e58f50030544d729463.tar.gz |
sweeping change from -EIO -> AVERROR_IO
Originally committed as revision 3239 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/yuv.c')
-rw-r--r-- | libavformat/yuv.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libavformat/yuv.c b/libavformat/yuv.c index 61a4590..7037bb4 100644 --- a/libavformat/yuv.c +++ b/libavformat/yuv.c @@ -60,7 +60,7 @@ static int yuv_read(ByteIOContext *f, url_get_filename(h, fname, sizeof(fname)); if (infer_size(&info->width, &info->height, img_size) < 0) { - return -EIO; + return AVERROR_IO; } info->pix_fmt = PIX_FMT_YUV420P; @@ -72,20 +72,20 @@ static int yuv_read(ByteIOContext *f, p = strrchr(fname, '.'); if (!p || p[1] != 'Y') - return -EIO; + return AVERROR_IO; get_buffer(f, info->pict.data[0], size); p[1] = 'U'; if (url_fopen(pb, fname, URL_RDONLY) < 0) - return -EIO; + return AVERROR_IO; get_buffer(pb, info->pict.data[1], size / 4); url_fclose(pb); p[1] = 'V'; if (url_fopen(pb, fname, URL_RDONLY) < 0) - return -EIO; + return AVERROR_IO; get_buffer(pb, info->pict.data[2], size / 4); url_fclose(pb); @@ -107,7 +107,7 @@ static int yuv_write(ByteIOContext *pb2, AVImageInfo *info) p = strrchr(fname, '.'); if (!p || p[1] != 'Y') - return -EIO; + return AVERROR_IO; width = info->width; height = info->height; @@ -122,7 +122,7 @@ static int yuv_write(ByteIOContext *pb2, AVImageInfo *info) pb = &pb1; p[1] = ext[i]; if (url_fopen(pb, fname, URL_WRONLY) < 0) - return -EIO; + return AVERROR_IO; } else { pb = pb2; } |