Simplify conv24to32 for-loop

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23213 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2007-05-02 16:23:16 +00:00
parent c3e24ef73f
commit 4b0fd35ac2
1 changed files with 1 additions and 1 deletions

View File

@ -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