Opened 9 years ago

Closed 8 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: Analyzed by developer:

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@… 9 years ago.
diff solution
20101218_v4l2_div_zero.2.diff (569 bytes) - added by jarekczek@… 9 years ago.
diff solution v2

Download all attachments as: .zip

Change History (5)

Changed 9 years ago by jarekczek@…

diff solution

comment:1 Changed 9 years ago by jarekczek@…

  • Cc jarekczek@… added

Changed 9 years ago by jarekczek@…

diff solution v2

comment:2 Changed 9 years ago by jarekczek@…

  • attachments.isobsolete changed from 0 to 1

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

comment:3 Changed 8 years ago by jarekczek@…

  • Resolution set to fixed
  • Status changed from new to closed

fixed in January 2011, r32755

Note: See TracTickets for help on using tickets.