mirror of https://github.com/odrling/Aegisub
Fix GetFloat again, I guess.
Originally committed to SVN as r1013.
This commit is contained in:
parent
ae307d9f74
commit
f59df9233d
|
@ -241,7 +241,11 @@ void AegiVideoFrame::GetFloat(float *buffer) const {
|
|||
if (flipped) src = data[0] + (h-y-1)*pitch[0]; // I think that it requires flipped data - amz
|
||||
else src = data[0] + y*pitch[0];
|
||||
for (unsigned int x=0;x<w;x++) {
|
||||
temp = (*src++)*0.3 + (*src++)*0.4 + (*src++)*0.3;
|
||||
//temp = (*src++)*0.3 + (*src++)*0.4 + (*src++)*0.3;
|
||||
temp = (*src++)*0.3;
|
||||
temp += (*src++)*0.4;
|
||||
temp += (*src++)*0.3;
|
||||
|
||||
src += delta;
|
||||
*dst++ = temp;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue