mirror of
https://git.freebsd.org/ports.git
synced 2025-07-13 23:39:20 -04:00
PR: ports/156086 Submitted by: Thomas Zander <thomas.e.zander@googlemail.com> (maintainer)
11 lines
504 B
C
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 */
|