lwindex: Try to compute video stream duration if not obtained yet.
lwinput: Set proper last_frame_number at the initial setting for LW-Libav reader.