looping fix

This commit is contained in:
Glenn Maynard
2003-10-14 07:06:23 +00:00
parent 3107c3b23b
commit cc9277407f
@@ -228,7 +228,9 @@ int FFMpeg_Helper::ReadPacket()
}
int ret = avcodec::av_read_packet(m_fctx, &pkt);
if( ret == -1 )
/* XXX: why is avformat returning AVERROR_NOMEM on EOF? */
if( ret < 0 )
// if( ret == -1 )
{
/* EOF. */
eof = 1;
@@ -238,6 +240,7 @@ int FFMpeg_Helper::ReadPacket()
return 0;
}
#if 0
if( ret < 0 )
{
/* XXX ? */
@@ -245,6 +248,7 @@ int FFMpeg_Helper::ReadPacket()
// GetID().filename.c_str(), ret );
return -1;
}
#endif
if( pkt.stream_index == m_stream->index )
{