[MPlayer-cvslog] r37800 - trunk/libmpcodecs/vd_raw.c

reimar subversion at mplayerhq.hu
Thu Feb 25 22:34:44 CET 2016


Author: reimar
Date: Thu Feb 25 22:34:43 2016
New Revision: 37800

Log:
vd_raw: Use more-likely-correct 1-bit format.

Modified:
   trunk/libmpcodecs/vd_raw.c

Modified: trunk/libmpcodecs/vd_raw.c
==============================================================================
--- trunk/libmpcodecs/vd_raw.c	Thu Feb 25 19:10:01 2016	(r37799)
+++ trunk/libmpcodecs/vd_raw.c	Thu Feb 25 22:34:43 2016	(r37800)
@@ -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;


More information about the MPlayer-cvslog mailing list