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

Originally committed as revision 7476 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Reimar Döffinger 18 years ago
parent 1fe68f0e7c
commit d188691205
  1. 2
      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){

Loading…
Cancel
Save