mirror of
https://github.com/mpv-player/mpv
synced 2025-03-02 20:28:02 +00:00
Simplify conv24to32 for-loop
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23213 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
c3e24ef73f
commit
4b0fd35ac2
@ -80,7 +80,7 @@ int conv24to32( txSample * bf )
|
||||
return 1;
|
||||
}
|
||||
memset( bf->Image,0,bf->ImageSize );
|
||||
for ( c=0,i=0;i < (int)(bf->Width * bf->Height * 3); )
|
||||
for ( c=0,i=0; c < bf->ImageSize; )
|
||||
{
|
||||
bf->Image[c++]=tmpImage[i++]; //red
|
||||
bf->Image[c++]=tmpImage[i++]; //green
|
||||
|
Loading…
Reference in New Issue
Block a user