ossrs / srs

SRS is a simple, high-efficiency, real-time video server supporting RTMP, WebRTC, HLS, HTTP-FLV, SRT, MPEG-DASH, and GB28181.
https://ossrs.io
MIT License
24.86k stars 5.29k forks source link

Incorrect use of two "int i" instances. #3759

Closed lokenetwork closed 11 months ago

lokenetwork commented 11 months ago

Incorrect use of two "int i" instances; change one "int i" to "int j"

chundonglinlin commented 11 months ago

The code below should be refactor? https://github.com/ossrs/srs/blob/73dd8af4c99b528b2d9f9bb59339084efa30c0c3/trunk/src/app/srs_app_ng_exec.cpp#L140-L147

winlinvip commented 11 months ago

image

Duplicate int i just works but not good coding practice, need to refactor.