1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

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

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){