diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-11-05 15:47:21 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-11-05 15:47:21 +0000 |
commit | a5c80b82c50a914cdfefbfa3bbc1cd073aefc1ae (patch) | |
tree | d55e2e4b3b6e5ac75925d44ea016d59f58778734 /dec_video.c | |
parent | 84b6d749f406ee50b2ac78de820c70cf573bc671 (diff) | |
download | mpv-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.c | 7 |
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) |