diff options
author | rtognimp <rtognimp@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-11-10 22:03:27 +0000 |
---|---|---|
committer | rtognimp <rtognimp@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-11-10 22:03:27 +0000 |
commit | 7d81b9bb22fc974c28dc9967f68bf07f348e6b54 (patch) | |
tree | b592080df1a9866526fde5644d3cb3d0d015dc70 /libmpcodecs | |
parent | 0e25f3f9d4f0b937885179fe84f698feb13fd55c (diff) | |
download | mpv-7d81b9bb22fc974c28dc9967f68bf07f348e6b54.tar.bz2 mpv-7d81b9bb22fc974c28dc9967f68bf07f348e6b54.tar.xz |
1l, another version check missing, noted by rgselk
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11432 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r-- | libmpcodecs/vd_ffmpeg.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libmpcodecs/vd_ffmpeg.c b/libmpcodecs/vd_ffmpeg.c index da1384cbe6..df85ab11a3 100644 --- a/libmpcodecs/vd_ffmpeg.c +++ b/libmpcodecs/vd_ffmpeg.c @@ -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]; |