summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJörg Hohensohn <hohensoh@rockbox.org>2004-03-08 08:29:11 +0000
committerJörg Hohensohn <hohensoh@rockbox.org>2004-03-08 08:29:11 +0000
commitbfba2731539d50778c7604bdd49386f1d652f9f8 (patch)
tree184533ca2d7668153351eaf1734b4682d11780e8 /apps
parentfe91ae858602667c1b3eab759cca67f5d3d7e6d4 (diff)
downloadrockbox-bfba2731539d50778c7604bdd49386f1d652f9f8.tar.gz
rockbox-bfba2731539d50778c7604bdd49386f1d652f9f8.tar.bz2
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
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/video.c4
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