[MPlayer-cvslog] r30352 - trunk/gui/bitmap.c

reimar subversion at mplayerhq.hu
Sun Jan 17 15:53:12 CET 2010


Author: reimar
Date: Sun Jan 17 15:53:12 2010
New Revision: 30352

Log:
Do not depend on PIX_FMT_RGB32 which is (currently?) not part of the public API.

Modified:
   trunk/gui/bitmap.c

Modified: trunk/gui/bitmap.c
==============================================================================
--- trunk/gui/bitmap.c	Sun Jan 17 15:40:44 2010	(r30351)
+++ trunk/gui/bitmap.c	Sun Jan 17 15:53:12 2010	(r30352)
@@ -59,7 +59,8 @@ static int pngRead( unsigned char * fnam
    case PIX_FMT_GRAY8:    bf->BPP =  8; break;
    case PIX_FMT_GRAY16BE: bf->BPP = 16; break;
    case PIX_FMT_RGB24:    bf->BPP = 24; break;
-   case PIX_FMT_RGB32:    bf->BPP = 32; break;
+   case PIX_FMT_BGRA:
+   case PIX_FMT_ARGB:     bf->BPP = 32; break;
    default:               bf->BPP =  0; break;
  }
  if (decode_ok && bf->BPP) {


More information about the MPlayer-cvslog mailing list