diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2007-01-14 16:10:05 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2007-01-14 16:10:05 +0000 |
commit | d1886912050574870adf25b119764d81eda117e1 (patch) | |
tree | cdb90203f4995705da3651c87bf5d53a4507812e /libavformat/mpc.c | |
parent | 1fe68f0e7c461d42afeb405e93508a8ae97f818a (diff) | |
download | ffmpeg-d1886912050574870adf25b119764d81eda117e1.tar.gz |
10l, > vs. >= typo, caused crashes on last mpc frame
Originally committed as revision 7476 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mpc.c')
-rw-r--r-- | libavformat/mpc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mpc.c b/libavformat/mpc.c index 8b2358ea48..a28efb16d7 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){ |