From e94f4294746d50ef7b25993fa59a9be32023d3bb Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Tue, 20 Nov 2012 11:43:37 +0000 Subject: [PATCH] cafdec: return right code if EOF is reached Signed-off-by: Paul B Mahol --- libavformat/cafdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {