ports/multimedia/mplayer/files/patch-libmpcodecs-vd_ffmpeg.c
Dennis Herrmann d44c8a67e3 - Update mplayer and mencoder to the latest snapshots.
PR:		ports/156086
Submitted by:	Thomas Zander <thomas.e.zander@googlemail.com> (maintainer)
2011-04-01 11:09:36 +00:00

11 lines
504 B
C

--- libmpcodecs/vd_ffmpeg.c.orig 2011-02-05 15:02:49.000000000 +0100
+++ libmpcodecs/vd_ffmpeg.c 2011-03-24 19:10:08.064575435 +0100
@@ -423,7 +423,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(*sh->bih))
/* Palette size in biSize */