summaryrefslogtreecommitdiff
path: root/multimedia/mplayer-share/patches
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/mplayer-share/patches')
-rw-r--r--multimedia/mplayer-share/patches/patch-ag16
1 files changed, 16 insertions, 0 deletions
diff --git a/multimedia/mplayer-share/patches/patch-ag b/multimedia/mplayer-share/patches/patch-ag
new file mode 100644
index 00000000000..a5c11769c9c
--- /dev/null
+++ b/multimedia/mplayer-share/patches/patch-ag
@@ -0,0 +1,16 @@
+$NetBSD: patch-ag,v 1.1 2005/08/27 06:59:52 dogcow Exp $
+
+--- libmpcodecs/ad_pcm.c 2005/07/28 13:43:24 1.18
++++ libmpcodecs/ad_pcm.c 2005/08/25 19:46:20 1.19
+@@ -98,8 +98,8 @@
+
+ static int decode_audio(sh_audio_t *sh_audio,unsigned char *buf,int minlen,int maxlen)
+ {
+- int len=sh_audio->channels*sh_audio->samplesize-1;
+- len=(minlen+len)&(~len); // sample align
++ unsigned len = sh_audio->channels*sh_audio->samplesize;
++ len = maxlen - maxlen % len; // sample align
+ len=demux_read_data(sh_audio->ds,buf,len);
+ return len;
+ }
+