Mercurial > libavformat.hg
changeset 5255:6a23d76cc72c libavformat
Return special EOF checking for aiff and au demuxers, the check was at
the wrong place, causing an empty packet to be read before EOF was
detected and the eof detection is already now handled by av_get_packet anyway.
author | reimar |
---|---|
date | Fri, 02 Oct 2009 06:42:20 +0000 |
parents | 83cc2a571542 |
children | 9f0e36645518 |
files | aiff.c au.c |
diffstat | 2 files changed, 0 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/aiff.c Fri Oct 02 06:40:50 2009 +0000 +++ b/aiff.c Fri Oct 02 06:42:20 2009 +0000 @@ -422,10 +422,6 @@ AVStream *st = s->streams[0]; int res; - /* End of stream may be reached */ - if (url_feof(s->pb)) - return AVERROR(EIO); - /* Now for that packet */ res = av_get_packet(s->pb, pkt, (MAX_SIZE / st->codec->block_align) * st->codec->block_align); if (res < 0)