From d1886912050574870adf25b119764d81eda117e1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Reimar=20D=C3=B6ffinger?= Date: Sun, 14 Jan 2007 16:10:05 +0000 Subject: [PATCH] 10l, > vs. >= typo, caused crashes on last mpc frame Originally committed as revision 7476 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/mpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/mpc.c b/libavformat/mpc.c index 8b2358e..a28efb1 100644 --- a/libavformat/mpc.c +++ b/libavformat/mpc.c @@ -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){ -- 2.7.4