mirror of
https://github.com/mpv-player/mpv
synced 2025-02-04 06:01:56 +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:
parent
5ac70db841
commit
edba49f1b8
@ -113,7 +113,7 @@ int pngRead( unsigned char * fname,txSample * bf )
|
||||
}
|
||||
bf->Width=raw.Width;
|
||||
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 );
|
||||
if ( ( bf->Image=malloc( bf->ImageSize ) ) == NULL )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user