diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-03-13 19:19:44 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-03-13 19:19:44 +0000 |
commit | 5ae092ee34bd8a174306abdd5cd8bf6eea4a2f8e (patch) | |
tree | 3934504fcfafd53f9c045fc0cf5b710bb8ee63f9 /libavformat/cafdec.c | |
parent | 0edfa79b23163be51d3ee1678f5ff87b5207f636 (diff) | |
download | ffmpeg-5ae092ee34bd8a174306abdd5cd8bf6eea4a2f8e.tar.gz |
Replace all the occurrences of AVERROR_EIO with AVERROR(EIO), and mark
AVERROR_EIO for deletion at the next major bump.
Originally committed as revision 22513 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/cafdec.c')
-rw-r--r-- | libavformat/cafdec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/cafdec.c b/libavformat/cafdec.c index c4aad1bbfa..df297164ba 100644 --- a/libavformat/cafdec.c +++ b/libavformat/cafdec.c @@ -293,13 +293,13 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt) int64_t left = CAF_MAX_PKT_SIZE; if (url_feof(pb)) - return AVERROR_IO; + return AVERROR(EIO); /* don't read past end of data chunk */ if (caf->data_size > 0) { left = (caf->data_start + caf->data_size) - url_ftell(pb); if (left <= 0) - return AVERROR_IO; + return AVERROR(EIO); } pkt_frames = caf->frames_per_packet; @@ -317,12 +317,12 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt) pkt_size = caf->num_bytes - st->index_entries[caf->packet_cnt].pos; pkt_frames = st->duration - st->index_entries[caf->packet_cnt].timestamp; } else { - return AVERROR_IO; + return AVERROR(EIO); } } if (pkt_size == 0 || pkt_frames == 0 || pkt_size > left) - return AVERROR_IO; + return AVERROR(EIO); res = av_get_packet(pb, pkt, pkt_size); if (res < 0) |