diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-11-20 11:43:37 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2012-11-21 10:34:38 +0000 |
commit | e94f4294746d50ef7b25993fa59a9be32023d3bb (patch) | |
tree | bb029ba1d474eea71c70a2863f31ba2e153615ab /libavformat/cafdec.c | |
parent | 25d8ebd422f3d6478a1add13792a9fdbb224bccc (diff) | |
download | ffmpeg-e94f4294746d50ef7b25993fa59a9be32023d3bb.tar.gz |
cafdec: return right code if EOF is reached
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavformat/cafdec.c')
-rw-r--r-- | libavformat/cafdec.c | 2 |
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) { |