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

Reimar Döffinger Reimar.Doeffinger at gmx.de
Wed Jan 5 16:11:56 CET 2011


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?


More information about the MPlayer-dev-eng mailing list