Index: libmpcodecs/vd_ffmpeg.c =================================================================== RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_ffmpeg.c,v retrieving revision 1.110 diff -u -w -r1.110 vd_ffmpeg.c --- libmpcodecs/vd_ffmpeg.c 10 Nov 2003 02:38:39 -0000 1.110 +++ libmpcodecs/vd_ffmpeg.c 10 Nov 2003 21:10:07 -0000 @@ -536,11 +536,11 @@ avctx->draw_horiz_band= draw_slice; } 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]; pic->data[2]= mpi->planes[2]; @@ -612,11 +612,11 @@ else ctx->b_count--; } - +#if LIBAVCODEC_BUILD >= 4689 // Palette support: free palette buffer allocated in get_buffer if ((mpi->bpp == 8) && (mpi->planes[1] != NULL)) free(mpi->planes[1]); - +#endif #if LIBAVCODEC_BUILD >= 4644 if(pic->type!=FF_BUFFER_TYPE_USER){ avcodec_default_release_buffer(avctx, pic);