Commit e94f4294 authored by Paul B Mahol's avatar Paul B Mahol

cafdec: return right code if EOF is reached

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 25d8ebd4
...@@ -343,7 +343,7 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt) ...@@ -343,7 +343,7 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt)
int64_t left = CAF_MAX_PKT_SIZE; int64_t left = CAF_MAX_PKT_SIZE;
if (url_feof(pb)) if (url_feof(pb))
return AVERROR(EIO); return AVERROR_EOF;
/* don't read past end of data chunk */ /* don't read past end of data chunk */
if (caf->data_size > 0) { if (caf->data_size > 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment