diff options
author | augustss <augustss@pkgsrc.org> | 1998-02-28 14:59:32 +0000 |
---|---|---|
committer | augustss <augustss@pkgsrc.org> | 1998-02-28 14:59:32 +0000 |
commit | 492aaf5132a4e46bd20722f1cec2cc19e7fc44d5 (patch) | |
tree | f0d9fee4c5344033e81c20ef62b70a8b6c3c3535 /audio | |
parent | 576e8a31a59982b226ec43183030b484d2c1542d (diff) | |
download | pkgsrc-492aaf5132a4e46bd20722f1cec2cc19e7fc44d5.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? */ + |