summaryrefslogtreecommitdiff
path: root/multimedia/mplayer-share/patches/patch-al
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/mplayer-share/patches/patch-al')
-rw-r--r--multimedia/mplayer-share/patches/patch-al14
1 files changed, 14 insertions, 0 deletions
diff --git a/multimedia/mplayer-share/patches/patch-al b/multimedia/mplayer-share/patches/patch-al
new file mode 100644
index 00000000000..fa13b92065b
--- /dev/null
+++ b/multimedia/mplayer-share/patches/patch-al
@@ -0,0 +1,14 @@
+$NetBSD: patch-al,v 1.3 2008/05/11 03:46:24 tonnerre Exp $
+
+--- stream/realrtsp/sdpplin.c.orig 2007-10-07 21:49:25.000000000 +0200
++++ stream/realrtsp/sdpplin.c
+@@ -330,7 +330,8 @@ sdpplin_t *sdpplin_parse(char *data) {
+
+ if(filter(data,"a=StreamCount:integer;",&buf)) {
+ desc->stream_count=(unsigned int)atoi(buf);
+- desc->stream=malloc(sizeof(sdpplin_stream_t*)*desc->stream_count);
++ desc->stream=calloc(desc->stream_count, sizeof(sdpplin_stream_t*));
++ if (!desc->stream) desc->stream_count = 0;
+ handled=1;
+ data=nl(data);
+ }