# HG changeset patch # User rtognimp # Date 1068501807 0 # Node ID bf80540aeae5db6d44e51cc33cbdaf14da0ce59b # Parent 3c8608601b05a6b4b5b674ef94f21567500f582d 1l, another version check missing, noted by rgselk diff -r 3c8608601b05 -r bf80540aeae5 libmpcodecs/vd_ffmpeg.c --- a/libmpcodecs/vd_ffmpeg.c Mon Nov 10 17:51:41 2003 +0000 +++ b/libmpcodecs/vd_ffmpeg.c Mon Nov 10 22:03:27 2003 +0000 @@ -537,9 +537,11 @@ } else avctx->draw_horiz_band= NULL; +#if LIBAVCODEC_BUILD >= 4689 // Palette support: libavcodec copies palette to *data[1] if (mpi->bpp == 8) mpi->planes[1] = malloc(AVPALETTE_SIZE); +#endif pic->data[0]= mpi->planes[0]; pic->data[1]= mpi->planes[1];