diff options
author | augustss <augustss> | 1998-02-28 14:59:32 +0000 |
---|---|---|
committer | augustss <augustss> | 1998-02-28 14:59:32 +0000 |
commit | 8c8432b3875a09625a21c7886dc6fa50f5158645 (patch) | |
tree | f0d9fee4c5344033e81c20ef62b70a8b6c3c3535 /audio | |
parent | 105ffd82d402278d6e528d94d912db64adb8dfb4 (diff) | |
download | pkgsrc-8c8432b3875a09625a21c7886dc6fa50f5158645.tar.gz |
Fix a bug that caused mpg123 to loop on a bad header.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/mpg123/patches/patch-aa | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/audio/mpg123/patches/patch-aa b/audio/mpg123/patches/patch-aa index 2cbd51a00ed..5b095b46741 100644 --- a/audio/mpg123/patches/patch-aa +++ b/audio/mpg123/patches/patch-aa @@ -66,3 +66,23 @@ if (param.outmode == DECODE_AUDIO) audio_queueflush (ai); #endif +*** common.c.old Sat Feb 28 15:42:24 1998 +--- common.c Sat Feb 28 15:42:36 1998 +*************** +*** 587,593 **** + too much distortion in the audio output). */ + do { + try++; +! rd->head_shift(hbuf,&newhead); + if (!oldhead) + goto init_resync; /* "considered harmful", eh? */ + +--- 587,594 ---- + too much distortion in the audio output). */ + do { + try++; +! if (rd->head_shift(hbuf,&newhead) == 0) +! return 0; + if (!oldhead) + goto init_resync; /* "considered harmful", eh? */ + |