changeset 11431:bf80540aeae5

1l, another version check missing, noted by rgselk
author rtognimp
date Mon, 10 Nov 2003 22:03:27 +0000
parents 3c8608601b05
children 2e5cbac6d8e4
files libmpcodecs/vd_ffmpeg.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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];