10l, > vs. >= typo, caused crashes on last mpc frame

Originally committed as revision 7476 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Reimar Döffinger 2007-01-14 16:10:05 +00:00
parent 1fe68f0e7c
commit d188691205
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ static int mpc_read_packet(AVFormatContext *s, AVPacket *pkt)
int ret, size, size2, curbits, cur = c->curframe;
int64_t tmp, pos;
if (c->curframe > c->fcount)
if (c->curframe >= c->fcount)
return -1;
if(c->curframe != c->lastframe + 1){