lua: refactor: replace recursive logic with iterative approach
Converted recursive implementation to an iterative one to prevent stack overflows from deeply nested calls. This enhances stability and ensures safer execution for long sequences.
Converted recursive implementation to an iterative one to prevent stack overflows from deeply nested calls. This enhances stability and ensures safer execution for long sequences.
VideoLAN code repository instance