10l, > vs. >= typo, caused crashes on last mpc frame
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sun, 14 Jan 2007 16:10:05 +0000 (16:10 +0000)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sun, 14 Jan 2007 16:10:05 +0000 (16:10 +0000)
Originally committed as revision 7476 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/mpc.c

index 8b2358ea484b3ee5b87eca7d9476439e2270b5b0..a28efb16d7e65691ccda48fc325cf981a8d8f2ea 100644 (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){