summaryrefslogtreecommitdiff
path: root/libavformat/sierravmd.c
diff options
context:
space:
mode:
authorPanagiotis Issaris <takis.issaris@uhasselt.be>2007-07-19 15:23:32 +0000
committerPanagiotis Issaris <takis.issaris@uhasselt.be>2007-07-19 15:23:32 +0000
commit6f3e0b21748b53fd7b0471196bbda1d7e561f4fe (patch)
tree5130d5b49907a72bf1f16c7861ec3b891a3708e4 /libavformat/sierravmd.c
parent769e10f0684c63aefb6fe36788f3e543312e185d (diff)
Replace all occurrences of AVERROR_IO with AVERROR(EIO).
Originally committed as revision 9760 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/sierravmd.c')
-rw-r--r--libavformat/sierravmd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/sierravmd.c b/libavformat/sierravmd.c
index 68fc685e48..d3eaa37cec 100644
--- a/libavformat/sierravmd.c
+++ b/libavformat/sierravmd.c
@@ -89,7 +89,7 @@ static int vmd_read_header(AVFormatContext *s,
/* fetch the main header, including the 2 header length bytes */
url_fseek(pb, 0, SEEK_SET);
if (get_buffer(pb, vmd->vmd_header, VMD_HEADER_SIZE) != VMD_HEADER_SIZE)
- return AVERROR_IO;
+ return AVERROR(EIO);
/* start up the decoders */
vst = av_new_stream(s, 0);
@@ -161,7 +161,7 @@ static int vmd_read_header(AVFormatContext *s,
raw_frame_table_size) {
av_free(raw_frame_table);
av_free(vmd->frame_table);
- return AVERROR_IO;
+ return AVERROR(EIO);
}
total_frames = 0;
@@ -250,7 +250,7 @@ static int vmd_read_packet(AVFormatContext *s,
vmd_frame_t *frame;
if (vmd->current_frame >= vmd->frame_count)
- return AVERROR_IO;
+ return AVERROR(EIO);
frame = &vmd->frame_table[vmd->current_frame];
/* position the stream (will probably be there already) */
@@ -265,7 +265,7 @@ static int vmd_read_packet(AVFormatContext *s,
if (ret != frame->frame_size) {
av_free_packet(pkt);
- ret = AVERROR_IO;
+ ret = AVERROR(EIO);
}
pkt->stream_index = frame->stream_index;
pkt->pts = frame->pts;