Browse Source

cafdec: return right code if EOF is reached

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n1.1
Paul B Mahol 13 years ago
parent
commit
e94f429474
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/cafdec.c

+ 1
- 1
libavformat/cafdec.c 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) {


Loading…
Cancel
Save