Stefan Reimer : winemp3: Fixed exit condition within decoding loop.

Alexandre Julliard julliard at winehq.org
Wed Jan 26 10:43:53 CST 2011


Module: wine
Branch: master
Commit: e8a2452c052f5ae9cc79db10a451d7209070aeb8
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e8a2452c052f5ae9cc79db10a451d7209070aeb8

Author: Stefan Reimer <it at stefanreimer.de>
Date:   Tue Jan 25 00:44:18 2011 -0800

winemp3: Fixed exit condition within decoding loop.

---

 dlls/winemp3.acm/mpegl3.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/winemp3.acm/mpegl3.c b/dlls/winemp3.acm/mpegl3.c
index 2ee8430..548483a 100644
--- a/dlls/winemp3.acm/mpegl3.c
+++ b/dlls/winemp3.acm/mpegl3.c
@@ -192,7 +192,7 @@ static void mp3_horse(PACMDRVSTREAMINSTANCE adsi,
             TRACE("New format: %li Hz, %i channels, encoding value %i\n", rate, channels, enc);
         }
         dpos += size;
-        if (dpos > *ndst) break;
+        if (dpos >= *ndst) break;
     } while (ret != MPG123_ERR && ret != MPG123_NEED_MORE);
     *ndst = dpos;
 }




More information about the wine-cvs mailing list