Opened 14 years ago

Closed 13 years ago

#1836 closed defect (fixed)

division by zero in stream/tvi_v4l2.c when norm not set

Reported by: jarekczek@… Owned by: reimar
Priority: normal Component: streaming
Version: HEAD Severity: normal
Keywords: Cc: jarekczek@…
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no

Description

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 just checked if the divider is zero and then omit the test. Attached diff. After applying the diff recording seems to go well.

Attachments (2)

20101218_v4l2_div_zero.diff (574 bytes ) - added by jarekczek@… 14 years ago.
diff solution
20101218_v4l2_div_zero.2.diff (569 bytes ) - added by jarekczek@… 14 years ago.
diff solution v2

Download all attachments as: .zip

Change History (5)

by jarekczek@…, 14 years ago

Attachment: 20101218_v4l2_div_zero.diff added

diff solution

comment:1 by jarekczek@…, 14 years ago

Cc: jarekczek@… added

by jarekczek@…, 14 years ago

diff solution v2

comment:2 by jarekczek@…, 14 years ago

attachments.isobsolete: 01

I put my marker BS at the end of line. This probably shouldn't be done, so I reattach the diff.

comment:3 by jarekczek@…, 13 years ago

Resolution: fixed
Status: newclosed

fixed in January 2011, r32755

Note: See TracTickets for help on using tickets.