summaryrefslogtreecommitdiff
path: root/audio/mpg123/patches
diff options
context:
space:
mode:
authoraugustss <augustss>1998-02-28 14:59:32 +0000
committeraugustss <augustss>1998-02-28 14:59:32 +0000
commit5e5a8bd223621b9bfb6825b6ca62d284b762646c (patch)
treef0d9fee4c5344033e81c20ef62b70a8b6c3c3535 /audio/mpg123/patches
parent04423a99a7a24d2d3638e20828cd47676c19ff57 (diff)
downloadpkgsrc-5e5a8bd223621b9bfb6825b6ca62d284b762646c.tar.gz
Fix a bug that caused mpg123 to loop on a bad header.
Diffstat (limited to 'audio/mpg123/patches')
-rw-r--r--audio/mpg123/patches/patch-aa20
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? */
+