build system: avoid certain warnings with Qt and clang
MPEG TS reader: increment chapter index for each MPLS chapter timecode

Fixes #860.