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/rm.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/rm.c')
-rw-r--r-- | libavformat/rm.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libavformat/rm.c b/libavformat/rm.c index d41141a34c..186c494641 100644 --- a/libavformat/rm.c +++ b/libavformat/rm.c @@ -563,7 +563,7 @@ static int rm_read_header(AVFormatContext *s, AVFormatParameters *ap) /* very old .ra format */ return rm_read_header_old(s, ap); } else if (tag != MKTAG('.', 'R', 'M', 'F')) { - return -EIO; + return AVERROR_IO; } get_be32(pb); /* header size */ @@ -688,7 +688,7 @@ static int rm_read_header(AVFormatContext *s, AVFormatParameters *ap) for(i=0;i<s->nb_streams;i++) { av_free(s->streams[i]); } - return -EIO; + return AVERROR_IO; } static int get_num(ByteIOContext *pb, int *len) @@ -726,18 +726,18 @@ static int rm_read_packet(AVFormatContext *s, AVPacket *pkt) len = get_buffer(pb, pkt->data, len); if (len <= 0) { av_free_packet(pkt); - return -EIO; + return AVERROR_IO; } pkt->size = len; st = s->streams[0]; } else { redo: if (rm->nb_packets == 0) - return -EIO; + return AVERROR_IO; get_be16(pb); len = get_be16(pb); if (len < 12) - return -EIO; + return AVERROR_IO; num = get_be16(pb); timestamp = get_be32(pb); get_byte(pb); /* reserved */ |