mirror of https://github.com/mpv-player/mpv
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:
parent
0e25f3f9d4
commit
7d81b9bb22
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue