[MPlayer-dev-eng] [patch] division by zero in stream/tvi_v4l2.c when norm not set

Jarek Czekalski jarekczek at poczta.onet.pl
Wed Jan 5 18:14:40 CET 2011


Thanks for the solution, Reimar. Works fine. I goggled the subject 
before and I guess more people would benefit from fixing the floating point.

W dniu 01/05/2011 04:11 PM, Reimar Döffinger pisze:
> On Sat, Jan 01, 2011 at 06:04:08PM +0100, Jarek Czekalski wrote:
>> I capture from usb camera with mencoder and v4l2. There's a problem in setting
>> a norm form v4l2 with this hardware. Then "Floating point exception is
>> reported". Division by zero in stream/tvi_v4l2.c. The calculation performed
>> there is only to report a warning message.
>>
>> I patched code just checking if the divider is
>> zero and then omit the test. Attached diff. After applying the diff recording
>> seems to go well.
> Thanks, but I changed it to use the existing getfps helper that handles
> this a bit better.
> Could you please test and report if/how it works?
> _______________________________________________
> MPlayer-dev-eng mailing list
> MPlayer-dev-eng at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
>



More information about the MPlayer-dev-eng mailing list