diff options
author | Vasil Dimov <vd@FreeBSD.org> | 2006-03-09 08:42:28 +0000 |
---|---|---|
committer | Vasil Dimov <vd@FreeBSD.org> | 2006-03-09 08:42:28 +0000 |
commit | 49dfdb8f18032ab0cf8daf30862fd914857eb9dd (patch) | |
tree | 3fce6e78952b2cadec38700ec33f5ee58cd37d41 /multimedia/mplayer | |
parent | 03ecfbdd8bbd009e7b6d926480feff3afd640a8b (diff) | |
download | ports-49dfdb8f18032ab0cf8daf30862fd914857eb9dd.tar.gz ports-49dfdb8f18032ab0cf8daf30862fd914857eb9dd.zip |
Notes
Diffstat (limited to 'multimedia/mplayer')
-rw-r--r-- | multimedia/mplayer/Makefile | 2 | ||||
-rw-r--r-- | multimedia/mplayer/files/patch-libmpdemux_demuxer.h | 37 |
2 files changed, 38 insertions, 1 deletions
diff --git a/multimedia/mplayer/Makefile b/multimedia/mplayer/Makefile index 851ea012ea4a..b0ac88fec333 100644 --- a/multimedia/mplayer/Makefile +++ b/multimedia/mplayer/Makefile @@ -270,7 +270,7 @@ PORTNAME= mplayer PORTVERSION= 0.99.7 -PORTREVISION= 10 +PORTREVISION= 11 CATEGORIES= multimedia audio ipv6 MASTER_SITES= http://www1.mplayerhq.hu/MPlayer/releases/ \ http://www2.mplayerhq.hu/MPlayer/releases/ \ diff --git a/multimedia/mplayer/files/patch-libmpdemux_demuxer.h b/multimedia/mplayer/files/patch-libmpdemux_demuxer.h new file mode 100644 index 000000000000..ea9ec6d15bd9 --- /dev/null +++ b/multimedia/mplayer/files/patch-libmpdemux_demuxer.h @@ -0,0 +1,37 @@ +--- libmpdemux/demuxer.h 9 Feb 2006 19:39:51 -0000 1.87 ++++ libmpdemux/demuxer.h 12 Feb 2006 17:01:30 -0000 1.90 +@@ -190,17 +190,19 @@ + dp->flags=0; + dp->refcount=1; + dp->master=NULL; +- dp->buffer=len?(unsigned char*)malloc(len+8):NULL; +- if(len) memset(dp->buffer+len,0,8); ++ dp->buffer=NULL; ++ if (len > 0 && (dp->buffer = (unsigned char *)malloc(len + 8))) ++ memset(dp->buffer + len, 0, 8); ++ else ++ dp->len = 0; + return dp; + } + + inline static void resize_demux_packet(demux_packet_t* dp, int len) + { +- if(len) ++ if(len > 0) + { + dp->buffer=(unsigned char *)realloc(dp->buffer,len+8); +- memset(dp->buffer+len,0,8); + } + else + { +@@ -208,6 +210,10 @@ + dp->buffer=NULL; + } + dp->len=len; ++ if (dp->buffer) ++ memset(dp->buffer + len, 0, 8); ++ else ++ dp->len = 0; + } + + inline static demux_packet_t* clone_demux_packet(demux_packet_t* pack){ |