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

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30352 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2010-01-17 14:53:12 +00:00
parent 2f7f6fdb9d
commit aedf40e334
1 changed files with 2 additions and 1 deletions

View File

@ -59,7 +59,8 @@ static int pngRead( unsigned char * fname,txSample * bf )
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) {