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
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)
{
int ret;
- if (url_feof(s->pb))
- return AVERROR(EIO);
ret= av_get_packet(s->pb, pkt, MAX_SIZE);
if (ret < 0)
return ret;