lavf/segment: do not pre-increment segment_idx value
Increment the value just when a new segment with the given index is started. Simplify logic, improve readability.
Showing
Please
register
or
sign in
to comment
Increment the value just when a new segment with the given index is started. Simplify logic, improve readability.