comparison mpc.c @ 1645:9aa27a785d1f libavformat

10l, > vs. >= typo, caused crashes on last mpc frame
author reimar
date Sun, 14 Jan 2007 16:10:05 +0000
parents cde17266ad08
children 1a3c9056982a
comparison
equal deleted inserted replaced
1644:f5a0cd8c23ac 1645:9aa27a785d1f
116 { 116 {
117 MPCContext *c = s->priv_data; 117 MPCContext *c = s->priv_data;
118 int ret, size, size2, curbits, cur = c->curframe; 118 int ret, size, size2, curbits, cur = c->curframe;
119 int64_t tmp, pos; 119 int64_t tmp, pos;
120 120
121 if (c->curframe > c->fcount) 121 if (c->curframe >= c->fcount)
122 return -1; 122 return -1;
123 123
124 if(c->curframe != c->lastframe + 1){ 124 if(c->curframe != c->lastframe + 1){
125 url_fseek(&s->pb, c->frames[c->curframe].pos, SEEK_SET); 125 url_fseek(&s->pb, c->frames[c->curframe].pos, SEEK_SET);
126 c->curbits = c->frames[c->curframe].skip; 126 c->curbits = c->frames[c->curframe].skip;