vd_raw: Use more-likely-correct 1-bit format.
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>
Thu, 25 Feb 2016 21:34:43 +0000 (21:34 +0000)
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>
Thu, 25 Feb 2016 21:34:43 +0000 (21:34 +0000)
git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@37800 b3059339-0415-0410-9bf9-f77b7e298cf2

libmpcodecs/vd_raw.c

index 27f3129..5c01d52 100644 (file)
@@ -51,7 +51,7 @@ static int init(sh_video_t *sh){
     // set format fourcc for raw RGB:
     if(sh->bih && sh->bih->biCompression==0){  // set based on bit depth
        switch(sh->bih->biBitCount){
-       case 1:  sh->bih->biCompression=IMGFMT_BGR1; break;
+       case 1:  sh->bih->biCompression=IMGFMT_RGB1; break;
        case 4:  sh->bih->biCompression=IMGFMT_BGR4; break;
        case 8:  sh->bih->biCompression=IMGFMT_BGR8; break;
        case 15: sh->bih->biCompression=IMGFMT_BGR15; break;