1l, another version check missing, noted by rgselk

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11432 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
rtognimp 2003-11-10 22:03:27 +00:00
parent 0e25f3f9d4
commit 7d81b9bb22
1 changed files with 2 additions and 0 deletions

View File

@ -537,9 +537,11 @@ static int get_buffer(AVCodecContext *avctx, AVFrame *pic){
} 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];