lwindex: Fix timestamp sortings for PTS generation from POCs.
lwindex: Check leading pictures when PTS generation from POCs.