mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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. Originally committed as revision 20138 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
c3db0bc61d
commit
a7a9dd0eb6
@ -422,10 +422,6 @@ static int aiff_read_packet(AVFormatContext *s,
|
||||
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)
|
||||
|
@ -164,8 +164,6 @@ static int au_read_packet(AVFormatContext *s,
|
||||
{
|
||||
int ret;
|
||||
|
||||
if (url_feof(s->pb))
|
||||
return AVERROR(EIO);
|
||||
ret= av_get_packet(s->pb, pkt, MAX_SIZE);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user