diff options
author | Jörg Hohensohn <hohensoh@rockbox.org> | 2004-03-08 08:29:11 +0000 |
---|---|---|
committer | Jörg Hohensohn <hohensoh@rockbox.org> | 2004-03-08 08:29:11 +0000 |
commit | bfba2731539d50778c7604bdd49386f1d652f9f8 (patch) | |
tree | 184533ca2d7668153351eaf1734b4682d11780e8 | |
parent | fe91ae858602667c1b3eab759cca67f5d3d7e6d4 (diff) | |
download | rockbox-bfba2731539d50778c7604bdd49386f1d652f9f8.tar.gz rockbox-bfba2731539d50778c7604bdd49386f1d652f9f8.zip |
my underrun checks have not been precisely correct
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4348 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/plugins/video.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/video.c b/apps/plugins/video.c index bcb160e0b6..fa1e453744 100644 --- a/apps/plugins/video.c +++ b/apps/plugins/video.c @@ -368,7 +368,7 @@ void timer4_isr(void) // IMIA4 if (!gBuf.bEOF && available < gStats.minVideoAvail) gStats.minVideoAvail = available; - if (available < (int)gFileHdr.blocksize) + if (available <= (int)gFileHdr.blocksize) { // no data for next frame if (gBuf.bEOF && (gFileHdr.flags & FLAG_LOOP)) @@ -425,7 +425,7 @@ void GetMoreMp3(unsigned char** start, int* size) if (!gBuf.bEOF && available < gStats.minAudioAvail) gStats.minAudioAvail = available; - if (available < advance || advance == 0) + if (available < advance + gFileHdr.blocksize || advance == 0) { gPlay.bAudioUnderrun = true; return; // no data available |