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/flvdec.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/flvdec.c')
-rw-r--r-- | libavformat/flvdec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 28a6430dcc..990af84ab6 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -69,7 +69,7 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt) pts = get_be24(&s->pb); // av_log(s, AV_LOG_DEBUG, "type:%d, size:%d, pts:%d\n", type, size, pts); if (url_feof(&s->pb)) - return -EIO; + return AVERROR_IO; url_fskip(&s->pb, 4); /* reserved */ flags = 0; @@ -139,12 +139,12 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt) } if (av_new_packet(pkt, size) < 0) - return -EIO; + return AVERROR_IO; ret = get_buffer(&s->pb, pkt->data, size); if (ret <= 0) { av_free_packet(pkt); - return -EIO; + return AVERROR_IO; } /* note: we need to modify the packet size here to handle the last packet */ |