Skip to content
Commit af76ac8b authored by sudarsan N's avatar sudarsan N Committed by Daniel DeGrasse
Browse files

video: common: prevent divide-by-zero video_closest_frmival_stepwise()



Adds an assertion and runtime log to ensure 'step' is not zero before
using it in division,preventing undefined behavior without modifying
 the public API.

Avoids a signature change (void → int) to preserve API stability for
Zephyr 4.2.A more complete solution can be proposed for 4.3.

CID: 444378

Signed-off-by: default avatarsudarsan N <sudarsansamy2002@gmail.com>
parent 2c097a4c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment