diff options
-rw-r--r-- | multimedia/mplayer/Makefile | 2 | ||||
-rw-r--r-- | multimedia/mplayer/files/patch-libmpcodecs__vd_ffmpeg.c | 11 |
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 */ |