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/flic.c | |
parent | cbf5374fc0f733cefe304fd4d11c7b0fa21fba61 (diff) | |
download | ffmpeg-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/flic.c')
-rw-r--r-- | libavformat/flic.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/flic.c b/libavformat/flic.c index bbf30d1435..65b7b9f92a 100644 --- a/libavformat/flic.c +++ b/libavformat/flic.c @@ -76,7 +76,7 @@ static int flic_read_header(AVFormatContext *s, /* load the whole header and pull out the width and height */ if (get_buffer(pb, header, FLIC_HEADER_SIZE) != FLIC_HEADER_SIZE) - return -EIO; + return AVERROR_IO; magic_number = LE_16(&header[4]); speed = LE_32(&header[0x10]); @@ -164,7 +164,7 @@ static int flic_read_packet(AVFormatContext *s, if ((ret = get_buffer(pb, preamble, FLIC_PREAMBLE_SIZE)) != FLIC_PREAMBLE_SIZE) { - ret = -EIO; + ret = AVERROR_IO; break; } @@ -173,7 +173,7 @@ static int flic_read_packet(AVFormatContext *s, if ((magic == FLIC_CHUNK_MAGIC_1) || (magic == FLIC_CHUNK_MAGIC_2)) { if (av_new_packet(pkt, size)) { - ret = -EIO; + ret = AVERROR_IO; break; } pkt->stream_index = flic->video_stream_index; @@ -183,7 +183,7 @@ static int flic_read_packet(AVFormatContext *s, size - FLIC_PREAMBLE_SIZE); if (ret != size - FLIC_PREAMBLE_SIZE) { av_free_packet(pkt); - ret = -EIO; + ret = AVERROR_IO; } flic->pts += flic->frame_pts_inc; packet_read = 1; |