aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-11-20 11:43:37 +0000
committerPaul B Mahol <onemda@gmail.com>2012-11-21 10:34:38 +0000
commite94f4294746d50ef7b25993fa59a9be32023d3bb (patch)
treebb029ba1d474eea71c70a2863f31ba2e153615ab
parent25d8ebd422f3d6478a1add13792a9fdbb224bccc (diff)
downloadffmpeg-e94f4294746d50ef7b25993fa59a9be32023d3bb.tar.gz
cafdec: return right code if EOF is reached
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r--libavformat/cafdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/cafdec.c b/libavformat/cafdec.c
index 8d39bfb831..dbc351a588 100644
--- a/libavformat/cafdec.c
+++ b/libavformat/cafdec.c
@@ -343,7 +343,7 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt)
int64_t left = CAF_MAX_PKT_SIZE;
if (url_feof(pb))
- return AVERROR(EIO);
+ return AVERROR_EOF;
/* don't read past end of data chunk */
if (caf->data_size > 0) {