lavf/segment: do not pre-increment segment_idx value
authorStefano Sabatini <stefasab@gmail.com>
Sat, 17 Nov 2012 16:20:29 +0000 (17:20 +0100)
committerStefano Sabatini <stefasab@gmail.com>
Tue, 20 Nov 2012 21:48:28 +0000 (22:48 +0100)
commit5a1ac463e02a0754abd014a3f49f8f7a90ff7cac
tree1180116c32a4fe20ed0b84328a54e37cb123ee6d
parent2b31aa88955adcc392ace1f8e026f4c820fbd66b
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.
libavformat/segment.c