Browse Source

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

Originally committed as revision 7476 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Reimar Döffinger 19 years ago
parent
commit
d188691205
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/mpc.c

+ 1
- 1
libavformat/mpc.c 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){


Loading…
Cancel
Save