Hi!

Ralph Glasstetter wrote:

>>Actually, not at all. I just checked the Qt 3.3.5 sources and found out
>>that the slider widget scales ALL values (by dividing them by 8192) if
>>there are more than 524288 frames (6 hours of interlaced PAL video
>>corresponds to exactly 540000 frames).
> 
> Is there a reason for that... is this some magic number, or what?

It's INT_MAX/4096, and the reason is that higher numbers might cause an
overflow when the value is multiplied with the length of the slider (in
pixels) and truncated to 32 bits.

> Are they using 19bit variables... or 20bits signed...? ;-)
> 
> But that explains everything... my stream was 542974 frames long!
> 
> 
>>Then it calculates the pixel 
>>position from the scaled values (first error) and rounds the result
>>toward zero (second error). Quoting the source file:
>>
>>      // ### the above line is probably not 100% correct
>>      // ### but fixing it isn't worth the extreme pain...
>>
>>Need I say more?
> 
> Unbelievable... it's just a little bit of math to do it right!
> "extreme pain"... lol ... pffffhhhh... ;-)

Didn't you know that programmers are lazy by default? ;-)

> OK,... as long as it just looks weird for >6h video I can live with it.
> 
> ciao
> Ralph
> 
> PS: Maybe one should drop a line to the Trolltech guys...?

They already know that there's a bug, don't they?

Or do you intend to just say "thank you"? ;-)

-- 
Michael "Tired" Riepe <[EMAIL PROTECTED]>
X-Tired: Each morning I get up I die a little

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
DVBCUT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dvbcut-user

Reply via email to