[FFmpeg-cvslog] cafdec: return right code if EOF is reached
Paul B Mahol
git at videolan.org
Wed Nov 21 11:36:33 CET 2012
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Nov 20 11:43:37 2012 +0000| [e94f4294746d50ef7b25993fa59a9be32023d3bb] | committer: Paul B Mahol
cafdec: return right code if EOF is reached
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e94f4294746d50ef7b25993fa59a9be32023d3bb
---
libavformat/cafdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/cafdec.c b/libavformat/cafdec.c
index 8d39bfb..dbc351a 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) {
More information about the ffmpeg-cvslog
mailing list