cafdec: return right code if EOF is reached
authorPaul B Mahol <onemda@gmail.com>
Tue, 20 Nov 2012 11:43:37 +0000 (11:43 +0000)
committerPaul B Mahol <onemda@gmail.com>
Wed, 21 Nov 2012 10:34:38 +0000 (10:34 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavformat/cafdec.c

index 8d39bfb..dbc351a 100644 (file)
@@ -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) {