summaryrefslogtreecommitdiff
path: root/multimedia/mplayer
diff options
context:
space:
mode:
authorPhilip M. Gollucci <pgollucci@FreeBSD.org>2009-07-17 18:34:49 +0000
committerPhilip M. Gollucci <pgollucci@FreeBSD.org>2009-07-17 18:34:49 +0000
commit9e32b7f0cddf11dd149ef21dbe6980d49469f7bd (patch)
tree8be71cb9a7627fbc8ea14c8938eb68ded0d03e15 /multimedia/mplayer
parent- Update to 2.2.4 (diff)
- Playing FLV videos, e.g. from youtube, results in mplayer segfaulting when the video is finished.
PR: ports/135719 Submitted by: Dennis Schneider <dschneid@informatik.hu-berlin.de> Approved by: maintainer
Notes
Notes: svn path=/head/; revision=237996
Diffstat (limited to 'multimedia/mplayer')
-rw-r--r--multimedia/mplayer/Makefile2
-rw-r--r--multimedia/mplayer/files/patch-libmpcodecs__vd_ffmpeg.c11
2 files changed, 12 insertions, 1 deletions
diff --git a/multimedia/mplayer/Makefile b/multimedia/mplayer/Makefile
index 600e818194ea..8c47ebdc3987 100644
--- a/multimedia/mplayer/Makefile
+++ b/multimedia/mplayer/Makefile
@@ -7,7 +7,7 @@
PORTNAME= mplayer
PORTVERSION= ${MPLAYER_PORT_VERSION}
-PORTREVISION= 13
+PORTREVISION= 14
COMMENT= High performance media player supporting many formats
diff --git a/multimedia/mplayer/files/patch-libmpcodecs__vd_ffmpeg.c b/multimedia/mplayer/files/patch-libmpcodecs__vd_ffmpeg.c
new file mode 100644
index 000000000000..ef5d3f1129f7
--- /dev/null
+++ b/multimedia/mplayer/files/patch-libmpcodecs__vd_ffmpeg.c
@@ -0,0 +1,11 @@
+--- ./libmpcodecs/vd_ffmpeg.c.orig 2007-10-07 15:49:25.000000000 -0400
++++ ./libmpcodecs/vd_ffmpeg.c 2009-07-17 14:28:08.733520971 -0400
+@@ -387,7 +387,7 @@
+ }
+ /* Pass palette to codec */
+ if (sh->bih && (sh->bih->biBitCount <= 8)) {
+- avctx->palctrl = calloc(1,sizeof(AVPaletteControl));
++ avctx->palctrl = av_malloc(sizeof(AVPaletteControl));
+ avctx->palctrl->palette_changed = 1;
+ if (sh->bih->biSize-sizeof(BITMAPINFOHEADER))
+ /* Palette size in biSize */