cafdec: return right code if EOF is reached
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
25d8ebd422
commit
e94f429474
@ -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…
x
Reference in New Issue
Block a user