From 9e32b7f0cddf11dd149ef21dbe6980d49469f7bd Mon Sep 17 00:00:00 2001 From: "Philip M. Gollucci" Date: Fri, 17 Jul 2009 18:34:49 +0000 Subject: - Playing FLV videos, e.g. from youtube, results in mplayer segfaulting when the video is finished. PR: ports/135719 Submitted by: Dennis Schneider Approved by: maintainer --- multimedia/mplayer/Makefile | 2 +- multimedia/mplayer/files/patch-libmpcodecs__vd_ffmpeg.c | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 multimedia/mplayer/files/patch-libmpcodecs__vd_ffmpeg.c (limited to 'multimedia/mplayer') 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 */ -- cgit v1.2.3