summaryrefslogtreecommitdiffstats
path: root/dec_video.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-05 15:47:21 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-05 15:47:21 +0000
commita5c80b82c50a914cdfefbfa3bbc1cd073aefc1ae (patch)
treed55e2e4b3b6e5ac75925d44ea016d59f58778734 /dec_video.c
parent84b6d749f406ee50b2ac78de820c70cf573bc671 (diff)
downloadmpv-a5c80b82c50a914cdfefbfa3bbc1cd073aefc1ae.tar.bz2
mpv-a5c80b82c50a914cdfefbfa3bbc1cd073aefc1ae.tar.xz
passing palette to libvo
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2717 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'dec_video.c')
-rw-r--r--dec_video.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/dec_video.c b/dec_video.c
index 6d4f92b192..2ca90866a3 100644
--- a/dec_video.c
+++ b/dec_video.c
@@ -691,8 +691,13 @@ case 3:
planes[0]=sh_video->our_out_buffer;
planes[2]=planes[0]+sh_video->disp_w*sh_video->disp_h;
planes[1]=planes[2]+sh_video->disp_w*sh_video->disp_h/4;
- } else
+ } else {
planes[0]=sh_video->our_out_buffer;
+ if(sh_video->bih && sh_video->bih->biSize==1064)
+ planes[1]=&sh_video->bih[1]; // pointer to palette
+ else
+ planes[1]=NULL;
+ }
case 2:
#ifdef USE_LIBVO2
if(planar)