From a5c80b82c50a914cdfefbfa3bbc1cd073aefc1ae Mon Sep 17 00:00:00 2001 From: arpi Date: Mon, 5 Nov 2001 15:47:21 +0000 Subject: [PATCH] passing palette to libvo git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2717 b3059339-0415-0410-9bf9-f77b7e298cf2 --- dec_video.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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)