Browse Source

Correctly signal EOF when demuxing caf files.

tags/n1.1
Carl Eugen Hoyos 13 years ago
parent
commit
b1e190d0fd
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      libavformat/cafdec.c

+ 3
- 1
libavformat/cafdec.c View File

@@ -348,7 +348,9 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt)
/* don't read past end of data chunk */
if (caf->data_size > 0) {
left = (caf->data_start + caf->data_size) - avio_tell(pb);
if (left <= 0)
if (!left)
return AVERROR_EOF;
if (left < 0)
return AVERROR(EIO);
}



Loading…
Cancel
Save