lwlibav: Generate PTS only when there is any invalid PTS and all DTS are valid.