cafdec: return right code if EOF is reached

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2012-11-20 11:43:37 +00:00
parent 25d8ebd422
commit e94f429474
1 changed files with 1 additions and 1 deletions

View 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) {