1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-04 14:11:53 +00:00

'40bit' - es png nincs is :)

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4238 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
pontscho 2002-01-18 12:26:57 +00:00
parent 5ac70db841
commit edba49f1b8

View File

@ -113,7 +113,7 @@ int pngRead( unsigned char * fname,txSample * bf )
} }
bf->Width=raw.Width; bf->Width=raw.Width;
bf->Height=raw.Height; bf->Height=raw.Height;
bf->BPP=( raw.Depth * raw.Components ) + raw.Alpha; bf->BPP=( raw.Depth * raw.Components );
bf->ImageSize=bf->Width * bf->Height * ( bf->BPP / 8 ); bf->ImageSize=bf->Width * bf->Height * ( bf->BPP / 8 );
if ( ( bf->Image=malloc( bf->ImageSize ) ) == NULL ) if ( ( bf->Image=malloc( bf->ImageSize ) ) == NULL )
{ {