changeset 1645:9aa27a785d1f libavformat

10l, > vs. >= typo, caused crashes on last mpc frame
author reimar
date Sun, 14 Jan 2007 16:10:05 +0000
parents f5a0cd8c23ac
children 52215d40cb3f
files mpc.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mpc.c	Sun Jan 14 16:02:22 2007 +0000
+++ b/mpc.c	Sun Jan 14 16:10:05 2007 +0000
@@ -118,7 +118,7 @@
     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){